yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheck
Claude Code and agent skill by yenn503/net-runners
- community
Checking that the SKILL.md file is still in the repository.
Binary-search a payload, DLL, or script with gocheck to locate the exact bytes Microsoft Defender or AMSI signatures, so the loader/payload author can rewrite only the flagged region instead of guessing.
Install
npx vskill@latest install yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheckSKILL.md
The same SKILL.md was published earlier as yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheck.
Locating Defender / AMSI Bad Bytes with gocheck
Authorized red-team / payload-engineering use only. Run on the operator's Windows-operator box (or an isolated Windows VM if the payload is untrusted) — never on a customer endpoint.
When to use
- A loader, DLL, or PowerShell/JS script is being caught by Defender or AMSI
and you need to know which bytes trigger the signature so the next iteration is targeted.
- Comparing two versions of a payload to localise the regression that made it
detectable.
- Vetting a freshly built Boaz/donut shellcode-loader against Defender before
staging it.
gocheck is the modern Go reimplementation of ThreatCheck — multi-engine (Defender, AMSI, Kaspersky), concurrent, actively maintained. It replaces ThreatCheck for this harness's payload-prep flow.
Prerequisites
- Windows 10/11 with Defender installed; Defender Real-Time Protection on
for AMSI scanning, off for raw Defender static scanning (so the file is not nuked mid-binary-search).
- Add the working folder to Defender exclusions before scanning:
Add-MpPreference -ExclusionPath C:\evasion\work.
- Go 1.21+ if building from source; otherwise grab the latest release binary.
Install
Quick run
The tool reports the offset range of the bad bytes plus the byte content — fix only that span and re-scan.
Workflow inside Net-Runner
- Generate / build the payload — see
infra:building-evasive-loaders-with-boaz
if you need shellcode or a multi-stage loader to start from.
- Locate the signature with
gocheck. - Mutate only the flagged bytes — re-encode, NOP-out the gadget, swap
the WinAPI call, change the import resolution method, etc.
- Verify breadth with
infra:multi-engine-av-scan-with-multcheck(don't
ship a payload that only bypassed Defender if the target environment runs anything else).
- Save the iteration with
nr_save_note(one note per round) so the chain
of "what bytes were flagged → what mutation worked" is auditable.
Output discipline
- Capture every
gocheckrun's stdout to
.netrunner/evidence/payload-prep/<payload>-<engine>-<round>.txt.
- A final clean run (zero hits on the engines you care about) is the evidence
the payload is ready to stage. Reference it from the finding's evidence list, not just from chat.
Pitfalls
- Running with Real-Time Protection on against a Defender-signatured file
will delete the file mid-search → set the exclusion path before starting.
- gocheck writes temp copies under
C:\Temp— exclude that path too. --kasperskyflag needs Kaspersky Security Cloud installed; otherwise
ignore it.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.netrunner/skills/infra/locating-defender-amsi-bad-bytes-with-gocheck/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheck)