stackhawk-hawkscan-scan-policy Cursor ruleA
stackhawk-hawkscan-scan-policy from stackhawk/agent-skills is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-scan-policy.mdc@git:20260914.3648225Pins git:20260914.3648225 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- stackhawk/agent-skills
- Path
cursor/.cursor/rules/stackhawk-hawkscan-scan-policy.mdc- Versions recorded
- 5
- Latest version
- git:20260914.3648225, committed Sep 14, 2026
- First version recorded
- Sep 14, 2026
- Size
- 6,178 bytes
- Repository stars
- 16
- License
- MIT
HawkScan scan-policy reference: first scan is one broad detected-stack policy run to completion; broadest scan runs last because the last completed scan is the result; follow-up full scans prune tech flags or fix auth/spec instead of raising strength; a named org policy attaches only via app.scanPolicy.name; hand-built policy traps (STRENGTH_LOW/THRESHOLD_LOW dropped as protobuf zero values, stripping pluginType drops passive rules); set tech flags to the detected stack before the first scan.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Scan Policy Reference How the scan policy is chosen, attached, and tuned across the first scan and any follow-up full scans. Read this before Phase 0c and before starting a second full scan. Field syntax is canonical in `hawk config show app.scanPolicy --text`; the optimize skill owns policy creation. ## Contents - [First scan: one broad policy, run to completion](#first-scan-one-broad-policy-run-to-completion) - [Tech flags before the first scan](#tech-flags-before-the-first-scan) - [Follow-up full scans: prune, do not crank](#follow-up-full-scans-prune-do-not-crank) - [Attaching a named org policy](#attaching-a-named-org-policy) - [Hand-built policy traps](#hand-built-policy-traps) --- ## First scan: one broad policy, run to completion - **One broad policy for the detected stack.** The first scan uses the preset that matches the app shape (`DEFAULT`, `DEFAULT_API`, or the GraphQL preset — confirm names with `hawk op policy list`) plus the detected tech flags, built by optimize Setup (Phase 0c). Not every plugin at HIGH strength; not a hand-picked subset. - **Run it to completion.** Do not stop it early and do not chain several long scans. The …
Read the whole file at its exact version.
How to install
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-scan-policy.mdc@sha256:5ae8cd8080800012The line at the top of this page pins the label git:20260914.3648225, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_thzq72u7gsvge3ys)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, all committed on Sep 14, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260914.3648225 latest | 2026-09-14 | 3648225 | 6,178 B | A | view · diff |
| git:20260914.7edcfdc | 2026-09-14 | 7edcfdc | 7,509 B | A | view · diff |
| git:20260914.1c2e9de | 2026-09-14 | 1c2e9de | 6,608 B | A | view · diff |
| git:20260914.9ed07fb | 2026-09-14 | 9ed07fb | 6,635 B | A | view · diff |
| git:20260914.1e1ce75 | 2026-09-14 | 1e1ce75 | 6,513 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (6178 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
stackhawk/agent-skills · 16 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_thzq72u7gsvge3ys GET https://markdownregistry.com/api/v1/resolve?ref=stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-scan-policy.mdc GET https://markdownregistry.com/api/v1/blob/5ae8cd8080800012d7a45649db10f1944d7f330854b20482d39398465da2e3c3
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.