Prompting guidesSecurity

Security terms for AI prompting

Contents
  1. How to prompt with these
  2. 1. Threat modeling and attack surface
  3. 2. Vulnerability names and scores
  4. 3. Vulnerability scanning and dependency analysis
  5. 4. Static analysis
  6. 5. Dynamic analysis and runtime checking
  7. 6. Fuzzing
  8. 7. Web vulnerability classes
  9. 8. Defensive coding controls
  10. 9. Authentication, sessions and secrets
  11. 10. Cryptography
  12. 11. Software supply chain
  13. 12. Cloud and network exposure
  14. 13. MITRE ATT&CK and threat intelligence
  15. 14. Detection engineering and logging
  16. 15. Incident response
  17. 16. Penetration testing and adversary emulation
  18. 17. Frameworks and standards
  19. Sources

Each term below is an established security name with the standard, framework or tool that defines it and a ready prompt line. Every section opens with the vague ask it replaces. Numbers in the prompt lines are starting points. Change them to fit your risk, your stack and your compliance rules.

Infrastructure, containers and databases have their own guides: infrastructure, containers and Kubernetes and databases. This guide covers what is specific to security and links to them for the rest.

How to prompt with these

Name the weakness class, name the tool, and say what counts as evidence. A model asked to “check this for security issues” returns a generic list. A model asked to “trace every request parameter to a SQL or shell sink and report each path as CWE-89 or CWE-78 with file and line” does the work you meant.

  1. Say what you are allowed to test. Name the repo, the host or the URL range, and say you own it or have written permission. Testing a system without permission is illegal in most countries, and a model will refuse vague requests to attack a target.
  2. Give the threat model first. One line on who the attacker is, what they can reach and what you are protecting changes every later answer. “Anonymous internet user, can reach the public API, must not read other tenants’ invoices” is enough.
  3. Ask for identifiers. Ask for a CWE ID on each weakness, a CVE ID on each known vulnerability and an ATT&CK technique ID on each attacker behaviour. The IDs let you check the claim against the source and deduplicate findings across tools.
  4. Separate confirmed from suspected. Ask the model to label each finding as confirmed, with the input and output that prove it, or suspected, with what would confirm it. Models report plausible bugs that aren’t there.
  5. Ask for the fix and a test together. A fix without a test that fails before the fix and passes after it is a guess. Ask for both in the same answer.
  6. Name the tool and its output format. “A Semgrep rule in YAML”, “a CodeQL query”, “a Sigma rule” and “SARIF output” each give you something a pipeline can run. Prose findings can’t be run.
  7. Keep secrets and customer data out of the prompt. Replace keys, tokens and personal data with placeholders before pasting logs or code.
  8. One question per prompt. Threat model, then static review of one component, then a fix. A prompt that asks for everything gets a shallow pass on each.

A template to copy:

Scope: <repo / service / URL range>. I own it / have written permission.
Threat model: attacker = <who>, can reach <what>, must not <impact>.
Task: <review / test / harden / detect> <component> for <weakness classes, with CWE IDs>.
Use: <tool or format, e.g. Semgrep rule, CodeQL query, ZAP config, Sigma rule>.
For each finding: CWE ID, file:line or request, confirmed or suspected, evidence, fix, regression test.
Don't change unrelated code. Don't include real secrets in examples.

1. Threat modeling and attack surface

Instead of “is this design secure?”, draw the system, mark where data crosses a trust boundary, and ask what can go wrong at each crossing. The Threat Modeling Manifesto and Adam Shostack’s work frame the whole activity as four questions, which make a good prompt skeleton on their own.

Term What it means Defined in Prompt line
Four question framework What are we working on? What can go wrong? What are we going to do about it? Did we do a good job? Threat Modeling Manifesto; Shostack “Answer the four threat modeling questions for this design, one section each, and end with three checks that show whether the mitigations work.”
Threat model A structured record of the system, its threats and the planned mitigations OWASP Threat Modeling Cheat Sheet “Write a threat model for the upload service as a table with threat, affected component, STRIDE category, mitigation and status.”
Data flow diagram Processes, data stores, external entities and the flows between them, used as the base of a threat model OWASP Threat Modeling Cheat Sheet “Draw a data flow diagram of the login flow in Mermaid with every process, store, external entity and trust boundary labelled.”
Trust boundary A line where data or control passes between parts with different privilege or trust OWASP Threat Modeling Cheat Sheet “List every trust boundary crossing in this diagram and the input validation that happens at each one.”
STRIDE Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege Microsoft; Shostack “Walk STRIDE across each element of the diagram and give at least one concrete threat per applicable category.”
Attack surface Every entry point an attacker can send input to or reach OWASP Attack Surface Analysis Cheat Sheet “Enumerate the attack surface of this service: routes, queues consumed, files read, environment variables and admin endpoints, with the auth each one requires.”
Attack tree A goal at the root broken into the ways to reach it Schneier, 1999 “Build an attack tree for ‘read another tenant’s invoice’ three levels deep and mark the cheapest branch.”
Abuse case A user story written from the attacker’s side OWASP “Write five abuse cases for the password reset flow, each with a test that would catch it.”
Least privilege Each component gets only the access it needs Saltzer and Schroeder, 1975 “List the permissions this service account has and the ones the code actually uses. Propose a policy with only the used ones.”
Defense in depth Several independent controls, so one failure doesn’t expose the asset NIST glossary “For the admin API, name the control at each layer: network, authentication, authorization, input validation and logging.”
Blast radius What an attacker controls after one component is compromised Common practice “Assume the image resizer is fully compromised. List what it can read, write and call, and how to shrink that.”
Secure by design Security decisions made in the design, owned by the vendor, not left to the customer CISA Secure by Design “Point out every place this design relies on the customer to configure security correctly, and propose a safe default for each.”

2. Vulnerability names and scores

Instead of “how bad is this bug?”, name the weakness class, name the specific vulnerability, and score severity and likelihood separately. Severity says how bad an exploit would be. Likelihood says how probable exploitation is. You need both to rank work.

Term What it means Defined in Prompt line
CWE Common Weakness Enumeration, a catalogue of kinds of mistake, such as CWE-89 for SQL injection MITRE CWE “Tag each finding with the most specific CWE ID that fits, not a pillar like CWE-707.”
CWE Top 25 MITRE’s yearly list of the most dangerous weaknesses. The 2025 list starts with CWE-79 XSS, CWE-89 SQL injection and CWE-352 CSRF MITRE CWE “Check this module for the current CWE Top 25 classes that apply to a Python web service and skip the memory safety ones.”
CVE Common Vulnerabilities and Exposures, an ID for one vulnerability in one product, such as CVE-2021-44228 CVE Program “For every dependency with a known CVE, give the CVE ID, the affected version range and the first fixed version.”
CNA CVE Numbering Authority, one of the 400 or more organisations allowed to assign CVE IDs within their scope CVE Program “Tell me which CNA covers this project, so I know where to request a CVE for the bug we found.”
NVD NIST’s National Vulnerability Database, which adds scores and affected product lists to CVE records. Since April 2026 NIST enriches KEV CVEs first and leaves many others unscheduled NIST NVD “Pull the CVSS vector and CPE matches for these CVEs, and flag any record NVD hasn’t enriched, so we fall back to the CNA’s score.”
CVSS Common Vulnerability Scoring System, a 0 to 10 severity score. In v4.0, 7.0 to 8.9 is High and 9.0 to 10.0 is Critical FIRST CVSS v4.0 “Score this finding with CVSS v4.0, show the full vector string and explain each Base metric choice in one line.”
CVSS vector The metric string behind a score, such as AV:N/AC:L/AT:N/PR:N/UI:N FIRST CVSS v4.0 “Don’t give me a bare number. Give the vector so I can recompute it.”
Threat and Environmental metrics CVSS v4.0 groups you add to the Base score for exploit maturity and for your own deployment. A score with all three is labelled CVSS-BTE FIRST CVSS v4.0 “Rescore these CVEs as CVSS-BTE for an internal-only service with no customer data, and label each score with its nomenclature.”
EPSS Exploit Prediction Scoring System, the estimated probability that a CVE is exploited in the wild in the next 30 days. Version 5 has run since June 2026 FIRST EPSS “Sort these CVEs by EPSS score and show CVSS beside it, so I can see high-severity bugs nobody exploits.”
KEV CISA’s Known Exploited Vulnerabilities catalog, CVEs with reliable evidence of exploitation in the wild and a clear fix CISA KEV “Flag every CVE in this list that is in CISA KEV and put those first, whatever their CVSS score.”
SSVC Stakeholder-Specific Vulnerability Categorization, a decision tree that ends in Track, Track*, Attend or Act CISA SSVC “Run each CVE through CISA’s SSVC tree using exploitation status, technical impact, automatable, mission prevalence and public well-being impact, and show the path for each.”
GHSA and OSV GitHub Security Advisories and the OSV open schema, advisories keyed to package ecosystems and versions GitHub; osv.dev “Query OSV for these lockfile packages and list advisories with the exact version ranges.”
Zero-day A vulnerability exploited before a fix is available Common usage “If any of these is still unpatched upstream, propose a mitigation we can apply without a vendor fix.”
Proof of concept Minimal input or code that shows a vulnerability is real Common usage “Write a proof of concept that shows the bug against my local test instance only, with no payload beyond reading /etc/hostname.”

3. Vulnerability scanning and dependency analysis

Instead of “check us for vulnerabilities”, say what the scanner looks at, from where, and with which credentials. A scan from outside the host sees open ports and banners. A credentialed scan sees installed packages and configuration, and finds far more.

Term What it means Defined in Prompt line
Vulnerability scanner A tool that checks hosts, images or code against a database of known vulnerabilities NIST SP 800-115 “Write a weekly scan job that covers every host in inventory.yaml and fails if a host is missing from the results.”
Unauthenticated scan A scan with no login, which sees only what the network exposes Greenbone and Tenable docs “Run an unauthenticated scan of the staging subnet I own, 10.20.0.0/24, and list open ports with service versions.”
Credentialed scan A scan that logs in to read installed packages, patch levels and configuration Greenbone and Tenable docs “Set up a credentialed scan with a read-only scan account and SSH keys. No sudo.”
Port scan Probing which TCP or UDP ports accept connections Nmap docs “Give me an nmap command for a TCP SYN scan of the top 1000 ports with service detection, -sS -sV, against 10.20.0.0/24.”
Service fingerprinting Identifying the software and version behind a port Nmap docs “From this nmap XML, list services whose version strings match a CVE in KEV.”
Software composition analysis SCA, scanning dependencies for known vulnerabilities and licence problems OWASP “Add an SCA step to CI that fails on any dependency with a KEV CVE or a CVSS 9.0 or higher fix available.”
Transitive dependency A dependency of a dependency, which you didn’t choose directly Common usage “For each vulnerable transitive dependency, show the chain from our package.json down to it.”
Reachability analysis Checking whether your code calls the vulnerable function in a dependency SCA vendors; govulncheck “Run govulncheck and separate CVEs in functions we call from CVEs in code we never reach.”
SBOM Software Bill of Materials, a machine-readable list of every component in a build CISA 2026 minimum elements, which replace the NTIA 2021 list “Generate a CycloneDX SBOM for this image at build time and attach it to the release.”
CycloneDX and SPDX The two main SBOM formats ECMA-424; ISO/IEC 5962:2021 “Emit the SBOM in CycloneDX JSON. Include package URLs and hashes for every component.”
Package URL purl, a standard string that names a package across ecosystems, such as pkg:npm/[email protected] purl spec “Key every component by purl so the SBOM matches advisories without fuzzy name matching.”
VEX Vulnerability Exploitability eXchange, a statement that a product is affected, not affected, fixed or under investigation for a CVE CISA; OpenVEX “Write an OpenVEX document marking CVE-XXXX as not_affected with justification vulnerable_code_not_in_execute_path.”
Container image scanning Scanning an image’s OS packages and language libraries Trivy, Grype docs “Add trivy image —severity HIGH,CRITICAL —exit-code 1 to the build after docker build.”
Misconfiguration scanning Checking infrastructure code and configs against security rules Trivy, Checkov docs “Scan the Terraform directory for misconfigurations and fix public buckets and 0.0.0.0/0 ingress first.”
False positive A reported finding that isn’t a real vulnerability Common usage “For each finding, say why it might be a false positive and what one check would settle it.”
Mean time to remediate MTTR, the average time from detection to fix Common practice “Build a query that reports median time to remediate by severity for the last 90 days from these scan exports.”

4. Static analysis

Instead of “look over the code for bugs”, ask for taint tracking from named sources to named sinks. Static application security testing, or SAST, reads source code without running it. OWASP lists its strength as finding problems early and pointing at the exact line, and its weakness as false positives and blindness to configuration and runtime behaviour.

Term What it means Defined in Prompt line
SAST Static application security testing, analysing source or bytecode without running it OWASP “Review this diff as a SAST tool would: report only data flows from user input to dangerous sinks, with file:line for both ends.”
Source Where untrusted data enters, such as a request parameter or a file read Semgrep, CodeQL docs “Treat req.query, req.body, req.headers and message queue payloads as sources.”
Sink Where untrusted data causes harm, such as a SQL query, a shell call or HTML output Semgrep, CodeQL docs “Sinks are db.raw, child_process.exec, fs paths and res.send of HTML.”
Sanitizer A function that makes tainted data safe for a sink Semgrep, CodeQL docs “Count escapeHtml and our validateId as sanitizers, and flag paths that skip them.”
Taint analysis Following untrusted data from sources through the program to sinks Semgrep taint mode; CodeQL “Write a Semgrep taint-mode rule with pattern-sources, pattern-sinks and pattern-sanitizers for this SSRF pattern.”
Data flow analysis Tracking how values move between variables and functions CodeQL docs “Write a CodeQL path query that shows each step from the HTTP handler to the exec call.”
Semgrep rule A YAML rule that matches code by pattern Semgrep docs “Write a Semgrep rule that bans yaml.load without SafeLoader, with three positive and three negative test cases.”
CodeQL query A query over a database built from the code GitHub CodeQL docs “Write a CodeQL query for Java that finds deserialization of request bodies with ObjectInputStream.”
SARIF Static Analysis Results Interchange Format, a JSON standard for analysis results OASIS SARIF 2.1.0 “Output findings as SARIF 2.1.0 so GitHub code scanning can show them on the PR.”
Baseline A snapshot of existing findings, so CI reports only new ones Semgrep, CodeQL docs “Run the scanner in diff mode against main and fail the PR only on findings it introduces.”
Secret scanning Searching code and history for keys, tokens and passwords gitleaks; GitHub secret scanning “Add gitleaks as a pre-commit hook and a CI job, and scan the full git history once.”
Push protection Blocking a push that contains a detected secret GitHub secret scanning “Turn on push protection and write the steps a developer follows when a push is blocked.”
Linter security rules Language linters with security checks, such as Bandit for Python or gosec for Go Bandit, gosec docs “Run bandit -r src with severity medium and above, and fix or annotate each hit with a reason.”
Code review checklist A fixed list of security questions for human review OWASP Code Review Guide “Give me a ten-item security review checklist for Go HTTP handlers, ordered by how often each bug appears.”

5. Dynamic analysis and runtime checking

Instead of “test the running site”, say whether the scanner only watches traffic or sends attacks, and give it a logged-in session. Dynamic application security testing, or DAST, sends requests to a running app and judges the responses. It finds configuration and runtime problems that static analysis can’t see, and it only covers code that its crawler reaches.

Term What it means Defined in Prompt line
DAST Testing a running application from the outside by sending requests OWASP “Plan a DAST run against staging.example.test, which I own, with the crawl scope, auth setup and excluded paths.”
Passive scan Inspecting traffic that passes through without sending new requests ZAP docs “Run ZAP passive rules only on the recorded traffic. Send no attack requests.”
Active scan Sending crafted attack requests to find vulnerabilities ZAP docs “Run an active scan only on /api/v2 and exclude /api/v2/admin/delete.”
Baseline scan ZAP’s packaged scan that spiders for 1 minute by default and reports passive findings, with no attacks ZAP docs “Add the ZAP baseline scan to CI against the preview deploy and fail on WARN for missing security headers.”
Full scan ZAP’s packaged scan with spidering and active attacks ZAP docs “Run the ZAP full scan nightly against staging only, never production.”
API scan ZAP’s packaged scan that imports an OpenAPI, SOAP or GraphQL definition and runs active rules tuned for APIs ZAP docs “Use zap-api-scan.py with our openapi.yaml so every endpoint is tested, not only the ones a crawler finds.”
Authenticated scan A dynamic scan that logs in and keeps the session, so it reaches pages behind login ZAP docs “Configure a ZAP context with form login, a logged-in indicator regex and two users, so it tests access control between them.”
Spider A crawler that discovers pages and parameters ZAP docs “Use the AJAX spider for this single-page app; the classic spider won’t run its JavaScript.”
IAST Interactive application security testing, an agent inside the running app that watches code paths and data during tests AWS DevOps Guidance “Explain what an IAST agent would catch in our integration tests that SAST and DAST would miss.”
AddressSanitizer ASan, compiler instrumentation that detects out-of-bounds access, use-after-free and double free, at a typical 2x slowdown Clang docs “Build the test suite with -fsanitize=address -fno-omit-frame-pointer and run it in CI.”
UndefinedBehaviorSanitizer UBSan, runtime checks for undefined behaviour such as signed overflow Clang docs “Add -fsanitize=undefined and make every UBSan report fail the test run.”
MemorySanitizer MSan, detection of uses of uninitialised memory, at a typical 3x slowdown Clang docs “Run the parser tests under MSan in a separate CI job with all dependencies instrumented.”
ThreadSanitizer TSan, detection of data races between threads, at a 5x to 15x slowdown Clang docs “Run the concurrency tests under -fsanitize=thread and list each race with both stack traces.”
Valgrind Memcheck A dynamic binary tool that finds memory errors without recompiling Valgrind docs “Run this binary under valgrind —leak-check=full and summarise definite leaks by allocation site.”

6. Fuzzing

Instead of “test it with weird inputs”, ask for a coverage-guided fuzz target with a seed corpus, a sanitizer and a time budget. A fuzzer mutates inputs, keeps the ones that reach new code, and reports crashes. OSS-Fuzz runs this on about 1,000 open source projects, and its README credits it with more than 13,000 fixed vulnerabilities as of May 2025.

Term What it means Defined in Prompt line
Fuzzing Feeding generated or mutated inputs to a program to find crashes and hangs OSS-Fuzz docs “Find the functions in this library that parse untrusted bytes and rank them as fuzz targets.”
Coverage-guided fuzzing Keeping inputs that reach new code edges and mutating them further libFuzzer, AFL++ docs “Use coverage-guided fuzzing with libFuzzer or AFL++, not random input generation.”
Fuzz target A function that takes a byte buffer and passes it to the code under test libFuzzer docs “Write LLVMFuzzerTestOneInput for parse_header that returns 0, never exits, and frees everything it allocates.”
Harness The code that connects the fuzzer to the target, including setup OSS-Fuzz docs “Write a harness that initialises the parser once, outside the per-input function.”
Seed corpus Valid example inputs the fuzzer starts from libFuzzer docs “Build a seed corpus of 20 small valid PNG files under 4 KB each.”
Dictionary Tokens the fuzzer inserts, such as keywords and magic bytes libFuzzer, AFL++ docs “Write a fuzzing dictionary for HTTP headers: method names, header names and delimiters.”
Corpus minimization Reducing a corpus to the smallest set with the same coverage libFuzzer -merge=1; afl-cmin “After each run, merge the new corpus into the stored one with -merge=1.”
Test case minimization Shrinking a crashing input to the smallest input that still crashes afl-tmin; libFuzzer -minimize_crash “Minimise this crash input with afl-tmin and explain the bytes that remain.”
Crash triage Deduplicating crashes by stack and judging which are security bugs OSS-Fuzz, ClusterFuzz docs “Group these 40 crashes by top three stack frames and rank the groups by bug type: write, read, null dereference.”
Persistent mode Running many inputs in one process without restarting it, which AFL++ documents as a 2x to 20x speedup AFL++ docs “Convert this harness to AFL++ persistent mode with __AFL_LOOP(10000).”
CmpLog An AFL++ feature that logs comparison operands so the fuzzer can solve magic values AFL++ docs “Build a CmpLog binary as well, since the format starts with a 4-byte magic and a checksum.”
Structure-aware fuzzing Mutating inputs as structured data, such as a protobuf, instead of raw bytes libprotobuf-mutator “Use libprotobuf-mutator with this .proto so mutations stay valid messages.”
Property-based testing Generating inputs to check that a stated property always holds, with automatic shrinking Hypothesis docs “Write Hypothesis tests that decode(encode(x)) == x for any valid x and that decode never raises anything but ValueError.”
Native Go fuzzing go test -fuzz, with seeds and found inputs stored under testdata/fuzz Go docs “Add FuzzParseURL with f.Add seeds and run it with go test -fuzz=FuzzParseURL -fuzztime=10m.”
Continuous fuzzing Running fuzzers on every change and for long periods OSS-Fuzz; ClusterFuzzLite “Set up ClusterFuzzLite to fuzz each PR for 10 minutes and the main branch nightly for 2 hours.”

7. Web vulnerability classes

Instead of “check for the OWASP stuff”, name the class, the CWE and the place to look. The OWASP Top 10 is an awareness list of risk categories, not a test plan, so ask for specific classes inside each category.

Term What it means Defined in Prompt line
OWASP Top 10 OWASP’s list of the ten most critical web application risk categories. The 2025 edition added A03 Software Supply Chain Failures and A10 Mishandling of Exceptional Conditions OWASP Top 10:2025 “Map each finding to the current OWASP Top 10 category and its CWE.”
Broken access control A user can act outside their permissions OWASP Top 10 A01 “For every route, list the role it requires and check that the handler enforces it on the server.”
IDOR Insecure direct object reference, reaching another user’s object by changing an ID OWASP; CWE-639 “Write tests where user A requests user B’s invoice, order and file IDs on every endpoint and expects 404.”
SQL injection Untrusted input changes the structure of a SQL query CWE-89 “Find every query built with string formatting and rewrite it with bound parameters.”
Command injection Untrusted input reaches a shell command CWE-78 “Replace shell=True calls with argument lists and reject inputs that start with a dash.”
Cross-site scripting XSS, untrusted input runs as script in another user’s browser CWE-79 “Find every place user content reaches HTML without context-aware encoding, including dangerouslySetInnerHTML.”
SSRF Server-side request forgery, the server fetches a URL the attacker controls CWE-918 “Make the URL fetcher resolve the host first, reject private, loopback and link-local addresses, and block 169.254.169.254.”
CSRF Cross-site request forgery, a site makes the victim’s browser send an authenticated request CWE-352 “Add synchronizer tokens to state-changing forms, and set SameSite=Lax on the session cookie as a second layer.”
Path traversal Input with ../ reaches files outside the intended directory CWE-22 “Resolve the joined path and reject it unless it stays under the uploads directory.”
Insecure deserialization Deserializing untrusted data that can create arbitrary objects CWE-502 “Replace pickle on request data with JSON and a schema check.”
XXE XML external entity, an XML parser fetches files or URLs named in the document CWE-611 “Configure every XML parser in the codebase with external entities and DTDs disabled.”
Open redirect A redirect target taken from user input CWE-601 “Allow redirects only to relative paths or an allowlist of our domains.”
Mass assignment Binding request fields straight onto a model, including fields like isAdmin CWE-915 “Replace the generic update with an explicit allowlist of editable fields per role.”
Race condition Two requests interleave and break a check, such as redeeming one coupon twice CWE-362 “Send 20 parallel redeem requests in a test and expect exactly one success.”
Security misconfiguration Unsafe defaults, verbose errors, open admin panels or missing hardening, A02 in the 2025 list OWASP Top 10 A02 “List debug flags, default credentials and stack-trace error pages that are enabled in the production config.”

8. Defensive coding controls

Instead of “make it secure”, name the control. Each line below is a specific defence with a test you can run.

Term What it means Defined in Prompt line
Parameterized query A query whose structure is fixed, with values passed separately. OWASP lists it as the first primary defense against SQL injection OWASP SQL Injection Prevention Cheat Sheet “Convert all queries to parameterized queries and add a lint rule that bans string-built SQL.”
Output encoding Encoding data for the context it lands in, such as HTML body, attribute, URL or JavaScript OWASP XSS Prevention Cheat Sheet “Use the template engine’s auto-escaping everywhere and list each place it is turned off.”
Allowlist validation Accepting only known-good input, rather than blocking known-bad input OWASP Input Validation Cheat Sheet “Validate the sort parameter against an allowlist of column names.”
Content Security Policy CSP, a header that limits where scripts and other resources load from MDN; W3C CSP “Write a strict nonce-based CSP with no unsafe-inline, and report violations to /csp-report for two weeks before enforcing.”
Security headers Headers such as Strict-Transport-Security, X-Content-Type-Options and frame-ancestors OWASP Secure Headers Project “Set HSTS with max-age=31536000 and includeSubDomains, nosniff, and frame-ancestors ‘none’.”
CORS Cross-Origin Resource Sharing, the rules for which other origins may read responses MDN; Fetch standard “Replace Access-Control-Allow-Origin: * with an allowlist of our two front-end origins, and never reflect the Origin header with credentials.”
Rate limiting Capping requests per client per time window OWASP API Security Top 10 “Limit login to 5 attempts per account per 15 minutes and 100 per IP per hour, returning 429.”
Default deny Blocking everything unless a rule allows it Common practice “Make the authorization middleware deny by default, so a route without a policy returns 403.”
Fail closed On an error, refuse access rather than allow it Common practice “If the policy service times out, deny the request and log it.”
Safe defaults The out-of-the-box configuration is the secure one CISA Secure by Design “Change the defaults so a new install has auth on, debug off and the admin port bound to localhost.”
Error handling Returning generic errors to users while logging detail on the server OWASP Error Handling Cheat Sheet “Return a generic 500 with a request ID, and log the stack trace with that ID server-side.”
Memory-safe language A language that prevents out-of-bounds and use-after-free bugs by construction CISA; NSA memory safety guidance “Propose which C modules handle untrusted input and would gain most from a rewrite in Rust.”

9. Authentication, sessions and secrets

Instead of “add secure login”, name the authenticator type, the session settings and where secrets live. NIST SP 800-63B is the reference for passwords and authenticators, and the OWASP cheat sheets turn it into code.

Term What it means Defined in Prompt line
MFA Multi-factor authentication, two or more different kinds of factor NIST SP 800-63B “Require MFA for admin roles and offer it to every user at sign-up.”
Phishing-resistant authenticator An authenticator bound to the site’s origin, so a fake site can’t relay it, such as a passkey or security key. SP 800-63B-4 requires AAL2 verifiers to offer one NIST SP 800-63B-4 “Add passkeys with WebAuthn, and make them the only second factor allowed for admins.”
Passkey A FIDO2 credential stored on a device or synced, used with WebAuthn FIDO Alliance; W3C WebAuthn “Implement passkey registration and login with a library, require user verification, and store only the public key and credential ID.”
Password policy Length and blocklist rules for passwords. SP 800-63B-4 sets 15 characters minimum for a password used alone and 8 inside MFA NIST SP 800-63B-4 “Require 15 characters minimum, allow at least 64, check against a breached-password list, no composition rules, no forced periodic change.”
Password hashing Storing passwords with a slow, salted hash OWASP Password Storage Cheat Sheet “Hash passwords with Argon2id, 19 MiB memory, 2 iterations, parallelism 1, and rehash old bcrypt hashes on next login.”
Credential stuffing Trying username and password pairs leaked from other sites OWASP “Add breached-password checks and per-account rate limits to defend against credential stuffing.”
Session management How the server issues, stores, rotates and ends sessions OWASP Session Management Cheat Sheet “Rotate the session ID on login, expire it after 30 minutes idle and 12 hours absolute, and invalidate it on logout.”
Cookie attributes Secure, HttpOnly and SameSite flags on a cookie MDN; RFC 6265 “Set the session cookie Secure, HttpOnly, SameSite=Lax and Path=/.”
OAuth 2.0 A framework for delegated authorization with access tokens RFC 6749; RFC 9700 “Implement the authorization code flow with PKCE, following RFC 9700. No implicit grant and no password grant. Exact redirect URI matching.”
PKCE Proof Key for Code Exchange, which binds the code to the client that asked for it RFC 7636 “Use PKCE with S256 for every client, including confidential ones.”
OpenID Connect OIDC, an identity layer on OAuth 2.0 that returns an ID token OpenID Foundation “Validate the ID token’s signature, issuer, audience, expiry and nonce.”
JWT validation Checking a JSON Web Token’s signature, algorithm and claims RFC 7519; RFC 8725 “Pin the accepted algorithm to RS256, reject alg none, and check exp, iss and aud.”
Secrets manager A service that stores and hands out secrets at runtime Vault, cloud provider docs “Move these environment variable secrets into the secrets manager and load them at startup with the service’s identity.”
Secret rotation Replacing a secret on a schedule or after exposure Common practice “Write a runbook to rotate the database password with zero downtime using two active credentials.”
Workload identity Short-lived credentials issued to a running service, instead of stored keys Cloud provider docs; SPIFFE “Replace the stored cloud access key in CI with OIDC federation and a role scoped to this repo’s main branch.”

10. Cryptography

Instead of “encrypt it”, name the algorithm, the mode, the key source and who manages nonces. Most crypto bugs are misuse of sound primitives, so ask for a vetted library and its high-level API.

Term What it means Defined in Prompt line
Authenticated encryption Encryption that also detects tampering, such as AES-GCM or ChaCha20-Poly1305 RFC 5116 “Encrypt these fields with AES-256-GCM through libsodium or the platform’s AEAD API. No hand-rolled modes.”
Nonce A number used once per key in modes like GCM NIST SP 800-38D “Generate a random 96-bit nonce per message and store it with the ciphertext. Never reuse a nonce with the same key.”
CSPRNG A cryptographically secure random number generator Language docs “Use secrets.token_urlsafe(32) for reset tokens, not random.”
Key management Generating, storing, rotating and destroying keys NIST SP 800-57 “Keep the data key wrapped by a KMS key and rotate the KMS key yearly.”
Envelope encryption Encrypting data with a data key that is itself encrypted by a master key Cloud KMS docs “Use envelope encryption with one data key per tenant.”
TLS 1.3 The current TLS version, with a one round trip handshake, forward secrecy on every key exchange and only AEAD ciphers RFC 8446, updated by RFC 9846 in July 2026 “Allow TLS 1.2 and 1.3 only, with the Mozilla intermediate configuration.”
Certificate pinning Accepting only a specific certificate or key for a host OWASP “Explain the outage risk of pinning in this mobile app and propose a backup pin.”
Constant-time comparison Comparing secrets in time that doesn’t depend on where they differ Language docs “Compare HMACs with hmac.compare_digest, not ==.”
HMAC A keyed hash that proves a message came from a key holder RFC 2104 “Sign webhook bodies with HMAC-SHA256 and reject requests older than 5 minutes.”
Post-quantum cryptography Algorithms designed to resist quantum computers, such as ML-KEM NIST FIPS 203 “List where we use RSA or ECDH key exchange and which library versions support hybrid ML-KEM.”

11. Software supply chain

Instead of “make sure our dependencies are safe”, name what you verify at each step: the source, the build, the artifact and what you deploy. Attacks here target the path code takes to production, not the code itself.

Term What it means Defined in Prompt line
Supply chain attack Compromising software through a dependency, build system or distribution channel NIST SP 800-161 “Map our build path and mark each point where someone else’s code or credentials could change what we ship.”
SLSA Supply-chain Levels for Software Artifacts. Version 1.2 has a Build track from L0 to L3 and a Source track slsa.dev “Get this repo’s builds to SLSA Build Level 3 and list what changes in CI to get there.”
Build provenance A signed record of how, where and from what source an artifact was built SLSA “Generate SLSA provenance in the release workflow and verify it before deploy.”
Keyless signing Sigstore signing with a short-lived certificate tied to an OIDC identity, so there is no long-lived key to leak Sigstore “Sign the container image with cosign keyless signing and verify the identity in the admission controller.”
Transparency log An append-only public log of signatures, such as Sigstore’s Rekor Sigstore docs “Verify the signature’s Rekor entry as part of the deploy check.”
Lockfile A file that pins exact dependency versions and hashes Package manager docs “Commit the lockfile, install with npm ci, and fail the build if the lockfile changes.”
Pinning by digest Referring to an image or action by content hash instead of a tag Docker; GitHub Actions docs “Pin every GitHub Action and base image to a full SHA, with the tag in a comment.”
Dependency confusion A public package with the same name as an internal one gets installed instead Alex Birsan, 2021 “Configure the registry so our scoped @corp packages only resolve from the internal registry.”
Typosquatting A malicious package named like a popular one Common usage “Check every new dependency in this PR for names one edit away from a popular package.”
OpenSSF Scorecard 18 automated checks of an open source repo’s practices, such as branch protection and pinned dependencies, each scored out of 10 OpenSSF “Run Scorecard on our top 20 dependencies and flag any with no branch protection or no recent maintainer activity.”
Reproducible build A build that produces bit-identical output from the same source reproducible-builds.org “Make the Go build reproducible with -trimpath and a fixed build time, and compare two builds’ hashes in CI.”
CI hardening Limiting what pipelines and their tokens can do GitHub Actions security docs “Set permissions: contents: read at the workflow top and grant write only per job.”

Container image and registry terms are in the containers and Kubernetes guide.

12. Cloud and network exposure

Instead of “lock down the cloud account”, name the exposure and the control. Most cloud breaches start with a misconfiguration or a leaked credential, not a novel exploit.

Term What it means Defined in Prompt line
Shared responsibility model The split of security duties between the cloud provider and the customer Cloud provider docs “For this architecture, list which controls are ours and which are the provider’s.”
IAM policy Rules that say which identity can do which action on which resource Cloud provider docs “Rewrite this policy without wildcards in Action or Resource.”
Privilege escalation path A chain of permissions that lets an identity gain more access Cloud security research “Check whether this role can create or pass a more privileged role, which would let it escalate.”
Instance metadata service The endpoint that gives a VM its credentials, such as IMDSv2 on AWS AWS docs “Require IMDSv2 with a hop limit of 1 on every instance.”
Public exposure A storage bucket, database or admin port reachable from the internet CIS Benchmarks “List every resource with a public IP, public bucket ACL or 0.0.0.0/0 security group rule.”
CIS Benchmark Consensus hardening guides for operating systems and cloud accounts Center for Internet Security “Check this account against the CIS AWS Foundations Benchmark and fix level 1 failures first.”
CSPM Cloud security posture management, continuous checking of cloud configuration Industry term “Write the five CSPM rules that would have caught the issues in this postmortem.”
Network segmentation Splitting a network so a compromise in one zone can’t reach others NIST SP 800-207 “Put the database in a subnet that accepts traffic only from the app tier on port 5432.”
Zero trust No implicit trust from network location; every request is authenticated and authorized NIST SP 800-207 “Remove the rule that trusts any request from the VPN range and require service identity on each call.”
Bastion and session manager A controlled entry point for admin access, with logging Cloud provider docs “Replace public SSH with the session manager and log every session.”

Network and DNS basics are in the infrastructure guide.

13. MITRE ATT&CK and threat intelligence

Instead of “what would a hacker do?”, ask in ATT&CK terms. ATT&CK is MITRE’s knowledge base of real attacker behaviour, organised as tactics, the attacker’s goal, and techniques, how they reach it. The IDs let detection, red team and threat intel work refer to the same thing.

Term What it means Defined in Prompt line
Tactic The why of an action, the attacker’s goal at a stage, such as Initial Access or Exfiltration. Enterprise ATT&CK has 15 MITRE ATT&CK “List the ATT&CK tactics this incident covers, in matrix order.”
Technique The how, the action that reaches a tactic, with an ID such as T1059 Command and Scripting Interpreter MITRE ATT&CK “Map each step of this report to an ATT&CK technique ID.”
Sub-technique A more specific form of a technique, such as T1059.001 PowerShell MITRE ATT&CK “Use sub-technique IDs where the report gives enough detail, and the parent ID where it doesn’t.”
Procedure A specific way one group carried out a technique MITRE ATT&CK “Give the procedure examples ATT&CK lists for T1566 and the detections each one suggests.”
Stealth and Defense Impairment The two tactics that replaced Defense Evasion in ATT&CK v19: hiding activity, and breaking security tools MITRE ATT&CK “Our mapping still uses Defense Evasion and T1562. Remap it to Stealth, Defense Impairment and the techniques that replaced T1562.”
ATT&CK Navigator A web tool for navigating and annotating ATT&CK matrices, often used for coverage heatmaps MITRE “Export a Navigator layer JSON that scores our detection coverage per technique from 0 to 3.”
Threat actor group A tracked set of intrusion activity, with an ATT&CK group ID MITRE ATT&CK “Which techniques does this group use that we have no detection for?”
Cyber kill chain Lockheed Martin’s seven phases: reconnaissance, weaponization, delivery, exploitation, installation, command and control, actions on objectives Hutchins, Cloppert and Amin, Lockheed Martin “Lay this intrusion out on the kill chain and say where we could have stopped it earliest.”
IOC Indicator of compromise, an observable such as a hash, IP or domain Common usage “Extract the IOCs from this report into STIX 2.1 and mark which ones expire fast.”
TTP Tactics, techniques and procedures, the behaviour behind an attack Common usage “Write detections for the TTPs in this report, not its IP addresses.”
Pyramid of Pain David Bianco’s six levels of indicator, from hash values at the bottom to TTPs at the top, ranked by how much detecting them costs the attacker Bianco, 2013 “Sort our current detections by Pyramid of Pain level and suggest how to move the lowest ones up.”
D3FEND MITRE’s knowledge graph of defensive techniques, linked to ATT&CK MITRE D3FEND “For each ATT&CK technique in this list, name a D3FEND countermeasure.”
CAPEC MITRE’s catalogue of attack patterns against software MITRE CAPEC “Link each CWE in our findings to the CAPEC attack patterns that exploit it.”
STIX and TAXII A format for threat intel and a protocol for sharing it OASIS “Ingest this TAXII feed and drop indicators older than 30 days.”

14. Detection engineering and logging

Instead of “alert us if we’re hacked”, ask for a detection with a named log source, a rule, a test and a false positive budget. Treat detections as code: versioned, tested and mapped to ATT&CK.

Term What it means Defined in Prompt line
Detection engineering Building, testing and maintaining detection rules as code Common practice “Set up a detections repo with one rule per file, a test per rule and CI that runs the tests.”
Sigma rule A vendor-neutral YAML detection format that converts to SIEM queries SigmaHQ “Write a Sigma rule for encoded PowerShell command lines, tagged attack.t1059.001, with level high.”
Log source The system and event type a detection reads, such as Windows process creation SigmaHQ; ATT&CK “List the log sources this detection needs and check we collect each one.”
SIEM Security information and event management, a system that collects logs and runs detections Industry term “Convert these Sigma rules to Splunk SPL and to Elastic queries.”
EDR Endpoint detection and response, an agent that records and acts on host activity Industry term “Which of these techniques would our EDR see from process telemetry alone?”
Audit log A record of security-relevant actions with who, what, when and from where OWASP Logging Cheat Sheet “Log logins, permission changes and data exports with user ID, source IP, action, target and result. Never log passwords or tokens.”
True and false positive An alert on real malicious activity, and an alert on benign activity Common usage “Estimate the false positive rate of this rule on a week of our logs before turning on paging.”
Alert fatigue Analysts ignoring alerts because too many are noise Common usage “Tune this rule to fire fewer than 5 times a day on normal activity.”
Detection strategy ATT&CK’s object, since v18, that groups the analytics and data components used to detect a technique MITRE ATT&CK “For T1059.001, read the ATT&CK detection strategy and list which of its data components we collect.”
Detection coverage Which ATT&CK techniques have a working detection ATT&CK; Navigator “Build a coverage map of our rules against the techniques used by the groups that target our sector.”
Atomic test A small script that performs one technique so a detection can be checked Atomic Red Team “Write an Atomic Red Team test for T1053.005 and the expected alert.”
Honeytoken A fake credential or record that should never be used, so any use is an alert Common practice “Plant a fake AWS key in the build server’s environment and alert on any API call with it.”
Log retention How long logs are kept and where Compliance frameworks “Keep security logs 1 year, with 90 days searchable, in a store the app’s role can’t delete from.”

15. Incident response

Instead of “help, we’ve been breached”, say what phase you are in and what you need next. NIST SP 800-61 Rev. 3, published in April 2025, is a CSF 2.0 Community Profile. It places incident response across all six CSF 2.0 functions instead of its own four-phase lifecycle.

Term What it means Defined in Prompt line
Incident response plan Who does what when an incident starts NIST SP 800-61 Rev. 3 “Draft an IR plan for a 10-person team with roles, contact order and decision rights.”
Playbook Step-by-step response for one incident type Common practice “Write a playbook for a leaked cloud access key: revoke, scope the activity in CloudTrail, rotate, review.”
Triage Deciding quickly whether an alert is an incident and how severe NIST SP 800-61 “Give me a triage checklist for this alert with the five questions that decide severity.”
Containment Stopping the incident from spreading while keeping evidence NIST SP 800-61 “Propose containment steps for this host that keep memory and disk evidence intact.”
Eradication and recovery Removing the attacker’s access and restoring service NIST SP 800-61 “List every persistence mechanism to check before we bring this host back.”
Chain of custody A record of who handled evidence and when Forensics practice “Write a chain of custody form for disk images with hash, handler, time and storage location.”
Order of volatility Collect the most short-lived evidence first, such as memory before disk RFC 3227 “Order the evidence collection for this Linux host by volatility.”
Timeline An ordered list of events across sources Forensics practice “Merge these auth, web and EDR logs into one UTC timeline of the attacker’s actions.”
Dwell time Time from intrusion to detection. M-Trends 2026 puts the global median at 14 days Mandiant M-Trends “From this timeline, compute dwell time and the first event we could have detected.”
Postmortem A blameless review of what happened and what changes Common practice “Write a blameless postmortem with timeline, root cause, contributing factors and dated action items.”
Tabletop exercise A discussion-based walk-through of a scenario CISA tabletop packages “Write a 60-minute tabletop on ransomware in the file server, with three injects and the decisions each one forces.”

16. Penetration testing and adversary emulation

Instead of “hack my site”, give the scope, the rules of engagement and the goal. Written permission comes first, and the model needs to see it in the prompt to help.

Term What it means Defined in Prompt line
Rules of engagement The written agreement on how a test runs: timing, methods and contacts. PTES says testing must not begin until the customer signs it PTES “Draft rules of engagement for a test of app.example.test with in-scope hosts, test window, forbidden actions and emergency contact.”
Scope The systems, accounts and techniques a test may touch PTES “List anything in this plan that would touch systems outside the stated scope.”
Reconnaissance Gathering information about a target before testing PTES; ATT&CK TA0043 “List what an outsider can learn about our domain from DNS, certificates and public repos.”
Black, grey and white box Testing with no knowledge, partial knowledge or full source access Common usage “Plan a white box test: you have the source, so prioritise code paths over guessing.”
Red team A team that emulates a real adversary end to end against defenders Common usage “Plan a red team objective of reaching the payroll database, with the ATT&CK techniques allowed.”
Purple team Red and blue working together, technique by technique, to test detections Common usage “Run a purple team plan: for each technique, the action, the expected alert and the result.”
Adversary emulation Replaying a specific group’s known techniques MITRE ATT&CK; MITRE CTID “Build an emulation plan from this group’s ATT&CK techniques for our lab.”
Bug bounty A program paying outside researchers for valid reports Common usage “Write a bug bounty policy with scope, out-of-scope issues, safe harbour and reward table.”
Coordinated vulnerability disclosure Reporting a vulnerability to the vendor and agreeing a fix and publication date ISO/IEC 29147 “Draft a security.txt and a disclosure policy with a 90-day default deadline.”
CTF Capture the flag, a practice competition with deliberately vulnerable targets Common usage “Explain this CTF challenge’s intended bug without giving the flag.”

17. Frameworks and standards

Instead of “make us compliant”, name the framework and the part of it you need. Each one answers a different question.

Term What it means Defined in Prompt line
NIST CSF 2.0 A framework of six functions for managing cyber risk: Govern, Identify, Protect, Detect, Respond, Recover NIST “Map our current controls to CSF 2.0 functions and show the gaps.”
NIST SSDF Secure Software Development Framework, SP 800-218, practices for building software securely NIST “Map our CI pipeline steps to SSDF practices and list the missing ones.”
OWASP ASVS Application Security Verification Standard, testable app security requirements in three levels. Version 5.0 says most apps should aim for level 2 OWASP “Check the login module against ASVS level 2 authentication requirements and cite each requirement number.”
OWASP SAMM Software Assurance Maturity Model, for measuring a security program OWASP “Score our team on SAMM’s verification function and suggest the next practice to adopt.”
CIS Controls 18 controls and 153 safeguards in version 8.1, sorted into implementation groups IG1 to IG3 Center for Internet Security “List the 56 CIS Controls IG1 safeguards and mark which ones a 20-person company already has.”
ISO/IEC 27001 An international standard for an information security management system ISO “Draft an access control policy that covers the ISO 27001 Annex A control on access rights.”
SOC 2 An audit report on a service organisation’s controls against the AICPA trust services criteria AICPA “List evidence we’d need for SOC 2 change management controls from our GitHub setup.”
PCI DSS Payment card industry security standard PCI SSC “Tell me which parts of this design put us in PCI DSS scope and how to shrink it with a hosted payment page.”

Sources

Pages read while writing this guide, grouped by section.