diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-05-12 09:58:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-12 09:58:41 -0700 |
| commit | 573ecf32cd82a8ec997b0e92acbdd46d17b67bb1 (patch) | |
| tree | 57d692a0580174148ffd8fa8a86214ef556a53ca /plugins/code-modernization/agents | |
| parent | 45896c8f2fe68e68ca2a8e3554d4441f48475431 (diff) | |
| parent | 5e4a45001d608ce34437181d96340faa1f5899c9 (diff) | |
Merge pull request #1820 from anthropics/morganl/code-modernization-plugin
code-modernization: fix pipeline gaps, redesign harden, dry-run hardening
Diffstat (limited to 'plugins/code-modernization/agents')
| -rw-r--r-- | plugins/code-modernization/agents/business-rules-extractor.md | 2 | ||||
| -rw-r--r-- | plugins/code-modernization/agents/security-auditor.md | 29 |
2 files changed, 20 insertions, 11 deletions
diff --git a/plugins/code-modernization/agents/business-rules-extractor.md b/plugins/code-modernization/agents/business-rules-extractor.md index 19839aa6..31eca621 100644 --- a/plugins/code-modernization/agents/business-rules-extractor.md +++ b/plugins/code-modernization/agents/business-rules-extractor.md @@ -42,5 +42,5 @@ of the technology, skip it. ## Output format -One "Rule Card" per rule (see the format in the modernize:extract-rules +One "Rule Card" per rule (see the format in the `/modernize-extract-rules` command). Group by category. Lead with a summary table. diff --git a/plugins/code-modernization/agents/security-auditor.md b/plugins/code-modernization/agents/security-auditor.md index f26aac53..f1b291db 100644 --- a/plugins/code-modernization/agents/security-auditor.md +++ b/plugins/code-modernization/agents/security-auditor.md @@ -11,20 +11,29 @@ engineer can fix. ## Coverage checklist -Work through systematically: +Adapt to the target stack — web items don't apply to a batch system, +terminal/screen items don't apply to a SPA. Work through what's relevant: + - **Injection** (SQL, NoSQL, OS command, LDAP, XPath, template) — trace every - user-controlled input to every sink + user-controlled input to every sink, including dynamic SQL and shell-outs - **Authentication / session** — hardcoded creds, weak session handling, - missing auth checks on sensitive routes -- **Sensitive data exposure** — secrets in source, weak crypto, PII in logs -- **Access control** — IDOR, missing ownership checks, privilege escalation paths -- **XSS / CSRF** — unescaped output, missing tokens -- **Insecure deserialization** — pickle/yaml.load/ObjectInputStream on - untrusted data + missing auth checks on sensitive routes/transactions/jobs +- **Sensitive data exposure** — secrets in source, weak crypto, PII in logs, + cleartext sensitive data in record layouts, flat files, or temp datasets +- **Access control** — IDOR, missing ownership checks, privilege escalation; + missing/permissive resource ACLs (RACF profiles, IAM policies, file perms); + unguarded admin functions +- **XSS / CSRF** — unescaped output, missing tokens (web targets) +- **Insecure deserialization** — untrusted data into pickle/yaml.load/ + `ObjectInputStream` or custom record parsers - **Vulnerable dependencies** — run `npm audit` / `pip-audit` / read manifests and flag versions with known CVEs -- **SSRF / path traversal / open redirect** -- **Security misconfiguration** — debug mode, verbose errors, default creds +- **SSRF / path traversal / open redirect** (web/network targets) +- **Input validation** — missing length/range/format checks at trust + boundaries (form/screen fields, API params, batch input records) before + persistence or downstream calls +- **Security misconfiguration** — debug mode, verbose errors, default creds, + hardcoded credentials in deployment scripts, job definitions, or config ## Tooling |
