Role playbook

Security engineers and CISOs

Agent-assisted code review, threat models, detection rules, alert triage and phishing analysis with checks at every step, plus how to secure the agents themselves: prompt injection, exfiltration, MCP supply chain, permissions and sandboxing.

Checked 13 Oct 202621 min read15 prompts1 skill1 hook1 routine

For Security engineers, AppSec and SOC analysts, detection engineers and CISOs

Review more code and triage more alerts, without letting your own agents become the breach

  • An agent security pass on every pull request before a human reviewer spends time on it
  • Threat models drafted from design docs in an hour, then argued over by people
  • Sigma rules that ship with a passing check and tested true and false positive cases
  • Alerts triaged with evidence and a disposition, with containment left to people
  • Secrets blocked before they reach a file or a commit, on every write
  • A written threat model and an enforced control set for the coding agents your company runs
Works withClaude CodeGitHub Copilot AutofixOpenAI Codex SecurityMicrosoft Security CopilotGoogle Security OperationsgitleaksOSV-ScannerSigma
On this page
  1. Where AI helps in this job
  2. Start in 15 minutes
  3. The tools security teams use
  4. Members only: Workflow: agent-assisted code security review
  5. Members only: Workflow: a threat model from a design doc
  6. Members only: Workflow: detection rules with tests
  7. Members only: Workflow: alert triage and phishing analysis
  8. Members only: Securing the agents themselves
  9. Members only: A skill for security analysts
  10. Members only: Guardrails and hooks
  11. Members only: Routines that run without you
  12. Members only: Prompt ladder for security engineers
  13. Members only: Measure it
  14. Members only: Risks and what not to automate

AI gives security teams two jobs. The first is reach: more code reviewed, more alerts triaged, faster threat models and detection rules. The second is new attack surface: every coding agent in your company reads untrusted text, holds credentials and can run commands. This page covers both, with the prompts, the hook and the controls to copy.

Where AI helps in this job#

TaskWhat AI does wellWhat you still own
Code security reviewFollows data from input to sink and flags injection, missing authorization, secrets and unsafe deserialization with file and lineConfirming exploitability, severity and the fix
Threat modelingDrafts assets, trust boundaries, data flows and STRIDE threats from a design docWhich threats matter for your business and risk appetite
Detection engineeringDrafts Sigma or SIEM queries from a technique or a threat report, plus test eventsTuning against your telemetry and owning the false positives
Alert triageSummarizes the alert, gathers read-only evidence and proposes a dispositionThe disposition and every containment action
Phishing analysisReads headers and body, checks SPF, DKIM and DMARC results, spots lookalike domains and pressure tacticsBorderline verdicts and what you tell the user
Vulnerability managementExplains a CVE, checks whether the vulnerable code is reachable, drafts the upgradeRisk acceptance and patch priority
Policies and standardsDrafts policy text, maps controls to frameworks, rewrites for plain languageApproval, legal review and enforcement
Security questionnairesDrafts answers from your policies and past answers, with citationsAccuracy: nothing reaches a customer unchecked
Incident reportsBuilds the timeline from logs and chat and drafts the reportRoot cause, regulatory notifications and disclosure

AI is weakest where security is hardest. It reports plausible findings it cannot prove, misses business-logic flaws that need product knowledge, cites CVE and ATT&CK IDs that do not exist, and knows nothing about vulnerabilities published after its training. The content you analyze is often hostile: a phishing email, an alert field or a malicious repository can carry instructions aimed at the model. Treat every finding as a lead to verify, and every input as data, not instructions.

Start in 15 minutes#

Remove customer data, credentials and internal hostnames before you paste anything into a consumer chat app. Use an enterprise plan whose terms exclude your data from training.

Prompt

Security review of a diff

Level 2Any assistant
Review this diff for security vulnerabilities:
[PASTE DIFF]
For each finding give: the vulnerability class with its CWE number, the file and line, how attacker-controlled input reaches it, the preconditions an attacker needs, the severity with one sentence of reasoning, and the fix. Only report issues you can tie to specific lines. If you find nothing, say "no findings" instead of listing general advice.

Good output names lines and a concrete path from input to the dangerous call. Open each cited line yourself, and ask "what input would trigger this?" for anything vague.

Prompt

Phishing analysis from headers and body

Level 2Any assistant
Analyze this reported email for phishing. Do not visit any link.
Headers: [PASTE FULL HEADERS]
Body: [PASTE BODY, WITH LINKS DEFANGED LIKE hxxps://example[.]com]
Check: the Authentication-Results for SPF, DKIM and DMARC; From versus Reply-To and Return-Path; lookalike or newly registered-looking domains, including punycode; urgency, payment or credential requests; and link text that differs from the link target.
Give a verdict (phishing, suspicious, legitimate), your confidence, and the three strongest pieces of evidence, each quoted from the headers or body.

Good output quotes the header lines it relies on. Check the Authentication-Results yourself; a model can misread which domain passed DMARC.

Prompt

Draft a policy section in plain language

Level 1Any assistant
Draft the section of our acceptable use policy that covers AI coding assistants. Cover: which tools are approved, which data classes may and may not go into them, human review before merging, secrets, and how to report a problem. Plain language, under 400 words, written for engineers.

Good output is short and specific enough to enforce. Compare it with your data classification policy, and have legal review it before you publish.

The tools security teams use#

  • Claude Code has /security-review for the current branch, the security-guidance plugin that reviews code as Claude writes it, the Claude Security plugin (/claude-security) for a multi-agent scan of a repository or a set of changes, and Code Review for pull requests on Team and Enterprise plans. A managed Claude Security service is available on the Enterprise plan. Anthropic's claude-code-security-review GitHub Action also exists, but its README warns it is not hardened against prompt injection, so run it only on pull requests from trusted authors.
  • GitHub Copilot Autofix proposes fixes for CodeQL alerts on pull requests and the default branch under GitHub Advanced Security. GitHub notes a fix can introduce new vulnerabilities, so review each one.
  • OpenAI Codex Security is an application security agent that validates findings in isolated environments. On GitHub, comment @codex security review.
  • Microsoft Security Copilot includes the Phishing Triage Agent in Defender, which resolves false positives itself and leaves true positives open for an analyst. It needs Security Copilot capacity and Defender for Office 365 Plan 2.
  • Google Security Operations has Gemini features for natural-language search, YARA-L rule drafting, case summaries and a triage and investigation agent.
  • Deterministic tools still carry the load: gitleaks for secrets, OSV-Scanner for dependencies, CodeQL or Semgrep for static analysis, Sigma for portable detections. Agents work best reading their output.

Workflow: agent-assisted code security review

One reviewer cannot read every pull request, and one tool catches only part of what matters. Stack cheap layers early and spend human time on the findings that survive them. 1. While code is written. Install the security-guidance plugin with /plugin install security-guidance@claude-plugins-official . Claude ...

Members only below this line

Get the full Security engineers and CISOs playbook free

What you get on this page:

  • 4 step-by-step workflows
  • 12 prompts
  • 1 skill
  • 1 hook
  • 1 routine

Free. You also get Stratiflux Weekly: one email a week, unsubscribe anytime.

Also in the members part

  1. Workflow: a threat model from a design doc
  2. Workflow: detection rules with tests
  3. Workflow: alert triage and phishing analysis
  4. Securing the agents themselves
  5. A skill for security analysts
  6. Guardrails and hooks
  7. Routines that run without you
  8. Prompt ladder for security engineers
  9. Measure it
  10. Risks and what not to automate

Sources

Checked against these on 13 Oct 2026.

  1. Claude Code security (opens in a new tab)code.claude.com
  2. Configure the sandboxed Bash tool (Claude Code) (opens in a new tab)code.claude.com
  3. Control MCP server access for your organization (Claude Code) (opens in a new tab)code.claude.com
  4. Scan your codebase for vulnerabilities (Claude Security plugin) (opens in a new tab)code.claude.com
  5. Catch security issues as Claude writes code (security-guidance plugin) (opens in a new tab)code.claude.com
  6. Claude Code hooks reference (opens in a new tab)code.claude.com
  7. Automate work with routines (opens in a new tab)code.claude.com
  8. anthropics/claude-code-security-review (opens in a new tab)github.com
  9. OWASP Top 10 for LLM Applications 2026 (opens in a new tab)genai.owasp.org
  10. OWASP Top 10 for Agentic Applications 2026 (opens in a new tab)genai.owasp.org
  11. MCP security best practices (opens in a new tab)modelcontextprotocol.io
  12. MITRE ATLAS (opens in a new tab)atlas.mitre.org
  13. CISA and partners: careful adoption of agentic AI services (opens in a new tab)cisa.gov
  14. gitleaks (opens in a new tab)github.com
  15. OSV-Scanner (opens in a new tab)github.com
  16. Sigma rules specification (opens in a new tab)github.com
  17. sigma-cli (opens in a new tab)github.com
  18. Splunk search command: Boolean evaluation order (opens in a new tab)help.splunk.com
  19. Responsible use of Copilot Autofix for code scanning (opens in a new tab)docs.github.com
  20. Microsoft Defender: Phishing Triage Agent (opens in a new tab)learn.microsoft.com
  21. Gemini in Google Security Operations (opens in a new tab)docs.cloud.google.com