yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheck

Claude Code and agent skill by yenn503/net-runners

Trust tier 3
  • community
Source check pending

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-gocheck

SKILL.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

powershell
# Option A — go install
go install github.com/gatariee/gocheck@latest
# Option B — release binary
# Download the latest .exe from https://github.com/gatariee/gocheck/releases
# and drop it on PATH (e.g. C:\Tools\gocheck.exe).

Quick run

powershell
# Defender static-scan, locate the signatured byte range
gocheck.exe .\loader.exe --defender
# AMSI in-memory scan for a PowerShell payload
gocheck.exe .\amsi-bypass.ps1 --amsi
# Both engines at once (concurrent)
gocheck.exe .\loader.exe --defender --amsi
# Add Kaspersky if installed
gocheck.exe .\loader.exe --defender --amsi --kaspersky
# Verbose binary-search trace
gocheck.exe .\loader.exe --defender --debug

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

  1. Generate / build the payload — see infra:building-evasive-loaders-with-boaz

if you need shellcode or a multi-stage loader to start from.

  1. Locate the signature with gocheck.
  2. Mutate only the flagged bytes — re-encode, NOP-out the gadget, swap

the WinAPI call, change the import resolution method, etc.

  1. 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).

  1. 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 gocheck run'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.
  • --kaspersky flag 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheck/badge)](https://verified-skill.com/skills/yenn503/net-runners/locating-defender-amsi-bad-bytes-with-gocheck)

Something wrong with this skill or its page? Tell us.