Security · GitHub · AI · 2 December 2026
Less Talk, More Action: A Security Audit of All My GitHub Repos
Or: how one session at Workplace Ninja Summit got me to sweep my own doorstep.
In short: After Ugur Koc's session at Workplace Ninja Summit 2026 I audited all 36 of my GitHub repositories and scripts with Cloudflare's security audit skill. There were a few spots I did not want to leave as they were, and they are fixed now. In this post I show how the skill works, how to run it yourself, what to look out for when reviewing the results, and how I now use the IntuneAutomation MCP to write new scripts properly from the start.
Listening is easy
If you go to conferences, you know the feeling: you sit in a great session, nod at the right moments and think "True, I should do that too". Then you go home, everyday life takes over, and "I should do that" turns into "some day".
At Workplace Ninja Summit 2026, Ugur Koc's session caught me right at that point. This time I did not want to just nod, I wanted to actually do it. Less talk, more action.
Why my own repos?
I share a lot. Remediation scripts for Intune, Windows Update tools, dashboards, small helpers for everyday admin work. Most of it is public on GitHub so that others can use it.
That is exactly the point: when someone rolls out one of my scripts as SYSTEM on their clients, they trust me. So I need to be sure I am not causing any harm. No gap an attacker can exploit, no outdated dependency with a known vulnerability.
And honestly: a lot piles up over the years. Repos I created a long time ago. Test scripts that stayed public. Code I would write differently today. I simply no longer knew exactly what was in all of them.
What is Cloudflare's security audit skill?
In June 2026 Cloudflare released its security audit skill as open source under the MIT licence: github.com/cloudflare/security-audit-skill. At its core, a skill is a set of instructions that puts an AI coding agent such as Claude Code into a specific role. In this case, the role of a security auditor.
According to Cloudflare, this is the very skill their internal vulnerability discovery system across many repositories grew out of. The public skill is the starting point, designed for one repository per run.
How the skill works: six phases
What convinced me: the skill does not just scan for suspicious patterns and dump a long list. It works in six clearly separated phases:
- Reconnaissance: Several agents map the architecture, trust boundaries and the inputs through which data enters the program. The result is an architecture description and a coverage ledger, a list of every area that needs to be checked.
- Hunting: Isolated "hunter" agents are assigned areas from that ledger and look specifically for ways to attack them. Depending on the code, they load matching specialist files, for example for supply chain and CI, cloud and deployment, web and authentication, or AI applications. A coverage critic then checks whether any areas were missed.
- Validation: Every suspicion goes to a fresh agent that tries to disprove it. The agent that finds something is never the one that confirms it.
- Structured output: Everything ends up in a
findings.jsonwith three clear verdicts: confirmed, needs validation, or rejected. A small Node.js script checks the file against a fixed schema. - Independent verification: New agents check the claims about the source code once more.
- Report: At the end you get a
REPORT.mdas an overview, aFINDINGS-DETAIL.mdwith details on the confirmed findings, and aNEEDS-VALIDATION.mdwith the open points.
What matters to me: a vulnerability only counts as confirmed when the complete path from the entry point to the vulnerable spot can be traced. If a single fact is missing, it is marked "needs validation" and gets no severity. And by Cloudflare's rules, a missing extra layer of protection is not a vulnerability yet, just a hardening note. That keeps the list short and honest.
How to run the skill yourself
Installation is a single command via the Skills CLI:
npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
With --global the skill is available in all your projects. You need a coding agent whose model supports tool use and parallel sub-agents, plus Node.js for the two validator scripts.
Then start your agent in the repository and type, for example:
security audit this codebase
find security vulnerabilities in ./src
do a security review, output to ~/audits/my-project
A clear audit request runs the full workflow with all six phases. If you only ask a targeted security question, the skill answers in guidance mode without creating report files. If you do not specify a location, the results go to ~/security-audit-skill/<repo-name>/run-<N>, outside your repository. The skill only writes into your repository if you explicitly choose a folder that Git ignores.
One thing worth knowing: the skill may only execute code from the audited project, such as builds, tests or fuzzers, inside an isolated sandbox without network access. Without one, it only reads the source code and marks suspicions as "needs validation" instead of trying them out.
My approach across 36 repos
I ran the skill across all 36 of my repositories, 15 of them public. I did not only look at the current state but at all branches and the Git history, because anything that was committed once still sits in an old commit after you delete it.
Cloudflare itself says that in their tests a single run found roughly half of what repeated runs found in total. Runs build on each other: the skill uses earlier results to close gaps and recheck changed code. For important repos, a second pass is worth it.
Reviewing the results: AI finds, I decide
A report is only the beginning. This is how I handled the results:
- Read the overview first.
REPORT.mdshows what is critical and what can wait. That is where I started. - Trace every confirmed finding.
FINDINGS-DETAIL.mddescribes the path through the code and a minimal fix. I looked at every spot in the code myself before changing anything. - Do not ignore the open points. Anything the skill cannot settle on its own, such as settings outside the repository, goes into
NEEDS-VALIDATION.md. That part is my job. - Have the fixes reviewed too. The skill itself does not change any code. Claude prepared the fixes as pull requests, and I read, tested and merged them. Interesting detail: the review of one fix turned up two more gaps, which were then closed in a second PR. Fixes need a second pair of eyes as well.
What I found
It was not entirely clean:
- A remediation script that started a file from a folder every user can write to. The script runs as SYSTEM. Together, that is a classic path to privilege escalation. The tool is now stored in a protected folder and only started if its Microsoft signature is valid.
- A web dashboard without a Content Security Policy and with CDN scripts that were not pinned by hash. Plus a few outdated npm packages. All updated and hardened.
- Missing protections in the GitHub settings, for example Dependabot alerts. They take a few minutes to switch on and will report on their own whenever a dependency has a known vulnerability.
What I take away
- Scripts with SYSTEM rights deserve special attention. Every path, every download, every started file is a possible point of attack.
- One run is not a free pass. Multiple passes find more, and new code needs new checks.
- Turning on protections takes minutes. GitHub's security features are free and save a lot of work.
- Clean up before the audit. The agent reads everything in the repository. And for customer code, check first whether it may be sent through an AI model at all.
- AI makes it easy to start, the responsibility stays with me. The skill found the issues, Claude suggested fixes, but I read, decided and merged myself. It does not replace a professional penetration test.
The next step: writing new scripts properly from the start
The audit looks back at what already exists. Just as important to me is that new scripts do not end up with the same weaknesses. So right afterwards I added the IntuneAutomation MCP server to Claude as a custom connector: intuneautomation.com/mcp.
The server gives Claude access to the IntuneAutomation script library. It is read-only, never touches my tenant and runs nothing itself. Through it, Claude can do four things:
search_scripts: search the library for matching scriptsget_script: fetch a complete scriptget_script_metadata: look up the permissions and parameters a script needsget_script_authoring_guide: fetch the guide the library's scripts are written to
For me that has two benefits. First, before writing a new script Claude checks whether there is already a proven solution I can reuse. Second, new scripts follow the same style and quality as the library, with clear parameters, documented permissions and a consistent structure. Audit first, then write new scripts the right way.
A small setup tip: with "Sign in now" I got an error during OAuth registration. With "No sign-in" it worked right away, which makes sense, since the server does not need a login.
FAQ: security audits with AI
What is Cloudflare's security audit skill?
An open-source skill under the MIT licence that turns an AI coding agent such as Claude Code into a security auditor. It audits a repository in six phases from reconnaissance to the report and only confirms vulnerabilities that an independent agent could not disprove.
How do I install the security audit skill?
With the Skills CLI: npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit. Add --global to make it available in all projects. You need a coding agent with tool use and parallel sub-agents, plus Node.js.
Does the skill change my code?
No. The skill describes fixes but does not apply them. By default the reports are written outside the repository to ~/security-audit-skill/<repo-name>/run-<N>.
Is a single run enough?
Not always. According to Cloudflare, a single run in their tests found roughly half of what repeated runs found in total. Later runs build on the earlier results.
Does an AI audit replace a penetration test?
No. An AI audit is a great starting point and finds a lot, but you still have to verify the results yourself, and it does not replace a professional penetration test.
Conclusion: do, don't just nod
Thanks to Ugur Koc for the nudge. Sometimes it takes exactly that kind of session to turn "I should" into "I did".
My tip: take an hour, install the skill and run it across your own repos. Not because you did something wrong, but because afterwards you know for sure. Either way, I can now keep sharing my scripts with confidence, and new ones follow a clear standard from the start.
And if you still find something in one of my repos: please let me know, ideally as an issue on GitHub.