StackVet

OWASP ASVS 5.0: every requirement, and what StackVet does about it

Application Security Verification Standard 5.0.0. Web apps and the services behind them. ASVS sorts its requirements into three levels. Level 1 is the baseline for any app, and level 2 is for most apps that hold people's information; StackVet holds each app to one of those two, from what the app does and keeps. Level 3, for apps where a break-in would do the most harm, is listed here, though StackVet does not yet hold any app to it.

What StackVet doesLevel 1Level 2Level 3All
StackVet can confirm or fail it498614149
StackVet can only show it missing14381668
A check helps; a person decides37111
The owner answers4514499
No check yet011718
Every requirement7018392345

V1 Encoding and Sanitization

V1.1 Encoding and Sanitization Architecture

V1.1.1Level 2The owner answers

Input is decoded into its plain form once, only when encoded data is expected, and before it is validated or cleaned, never after.

Verify that input is decoded or unescaped into a canonical form only once, it is only decoded when encoded data in that form is expected, and that this is done before processing the input further, for example it is not performed after input validation or sanitization.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where the app turns encoded text back into plain text (web addresses, base64, HTML), does it do that once, before checking the text, and never after?
StackVet shows where to look in the code: locate.decoding lists the places.
When it applies
To every app held to its level.
V1.1.2Level 2StackVet can confirm or fail it

Output encoding and escaping happen as the last step before the data is used by its interpreter, or by the interpreter itself.

Verify that the application performs output encoding and escaping either as a final step before being used by the interpreter for which it is intended or by the interpreter itself.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Outside tools: bandit, 4 rules. Its rules look for: Django's mark_safe, which puts a value into the HTML without output encoding; Mako templates, which put values into the HTML without output encoding unless each one is filtered; a Jinja2 environment made with autoescape off, so values go into the HTML without output encoding; markupsafe.Markup given text that is not fixed, which then goes into the HTML without output encoding (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 21 rules. Its rules look for: HTML output built without output encoding for its context (cross-site scripting); content rendered as HTML with innerHTML, document.write, dangerouslySetInnerHTML or v-html, rather than a safe rendering function (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: config.template-engine-escapes. Looks for: The template engine escapes what it writes by itself (Django, Jinja2 under Flask, React, Vue, EJS, Mustache), every outside-tool rule that reads it switched off ran and found nothing, and every language and package list in the app was read; in part, since HTML put together by hand and output to other interpreters are not seen (only ever in part)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: HTML output built without output encoding for its context (cross-site scripting) (only shows it missing)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.

V1.2 Injection Prevention

V1.2.1Level 1StackVet can confirm or fail it

Text the app puts into a page, a header, or an XML document is encoded for the exact place it goes, so it cannot change the page's structure.

Verify that output encoding for an HTTP response, HTML document, or XML document is relevant for the context required, such as encoding the relevant characters for HTML elements, HTML attributes, HTML comments, CSS, or HTTP header fields, to avoid changing the message or document structure.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
11 checks speak to it
  • Reads the code: ast.html-from-value. Looks for: A value is put on the page as HTML, without escaping (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.ai-reply-html-unencoded. If it fails: Whatever the model writes goes into the page as HTML, and anybody who can steer the model (by what they type, or by what they saved for it to read) can make it write a script that runs in the browser of whoever reads the answer, with their session. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • The running app: probe.reflected-unencoded. If it fails: Whatever is in the address comes back as part of the page. Somebody can send a link whose address carries a script, and it runs in the app as the person who clicks it, with their session: this is reflected cross-site scripting. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.stored-unencoded. If it fails: What one person saves is written into the page as it is, so a record holding a script runs it in the browser of everybody who opens it, with their session: this is stored cross-site scripting, and it needs no link to be clicked. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: bandit, 4 rules. Its rules look for: Django's mark_safe, which puts a value into the HTML without output encoding; Mako templates, which put values into the HTML without output encoding unless each one is filtered; a Jinja2 environment made with autoescape off, so values go into the HTML without output encoding; markupsafe.Markup given text that is not fixed, which then goes into the HTML without output encoding (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 1 rule. Its rules look for: a value that is not fixed text marked as safe for a Go template (template.HTML, JS, URL, and their relatives), so it is put into the page without escaping (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 4 rules. Its rules look for: cross-site scripting through a link whose href is user input, such as a javascript: URL written into HTML; cross-site scripting through a link whose text is user input written into HTML without output encoding; cross-site scripting through an HTML tag built from user input without output encoding; cross-site scripting: user input written into an HTML response without output encoding
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 94 rules. Its rules look for: HTML output built without output encoding for its context (cross-site scripting); content rendered as HTML with innerHTML, document.write, dangerouslySetInnerHTML or v-html, rather than a safe rendering function
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 7 rules. Its rules look for: HTML output built without output encoding for its context (cross-site scripting)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 2 rules. Its rules look for: HTML output built without output encoding for its context (cross-site scripting)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 3 rules. Its rules look for: HTML output built without output encoding for its context (cross-site scripting)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.2.2Level 1StackVet can only show it missing

Untrusted data put into a web address is encoded for where it goes in the address, and only safe kinds of address (never javascript: or data:) are allowed.

Verify that when dynamically building URLs, untrusted data is encoded according to its context (e.g., URL encoding or base64url encoding for query or path parameters). Ensure that only safe URL protocols are permitted (e.g., disallow javascript: or data:).

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a URL scheme check that lets javascript: or data: URLs through (only shows it missing)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.2.3Level 1StackVet can confirm or fail it

Untrusted data put into JavaScript or JSON the app builds is encoded or escaped, so it cannot change the script's or the JSON's structure.

Verify that output encoding or escaping is used when dynamically building JavaScript content (including JSON), to avoid changing the message or document structure (to avoid JavaScript and JSON injection).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.reflected-json-unescaped. If it fails: A " sent in the address comes back in JSON as it is, so it ends the string it was put in and whatever follows is read as more of the JSON: the sender decides part of its shape. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Outside tools: brakeman, 1 rule. Its rules look for: cross-site scripting through JSON built from user input and written into JavaScript content without escaping
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V1.2.4Level 1StackVet can confirm or fail it

Database queries keep the data apart from the query itself (parameterized queries, an ORM, or something as safe), so nobody can inject their own query.

Verify that data selection or database queries (e.g., SQL, HQL, NoSQL, Cypher) use parameterized queries, ORMs, entity frameworks, or are otherwise protected from SQL Injection and other database injection attacks. This is also relevant when writing stored procedures.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
9 checks speak to it
  • Reads the code: ast.sql-built-by-hand. Looks for: A database query is built by joining text together
    Needs: nothing: plain sv check
  • Signed in: probe.sql-injection. If it fails: Part of a web address the app reads changed what its database did: the same request with an always-true condition added was answered differently from one with an always-false condition. The app is joining what it was sent into a database query, so anybody can rewrite that query: read other people's records, or worse. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: bandit, 3 rules. Its rules look for: Django's QuerySet.extra given SQL, where a value can end up in the query text; Django's RawSQL given SQL, where a value can end up in the query text; SQL query built by string formatting or concatenation
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 2 rules. Its rules look for: SQL query built by string concatenation; SQL query built with a format string
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 3 rules. Its rules look for: SQL injection through a dynamic finder method built from user input; SQL injection through a query's limit or offset built from user input; SQL injection: a database query built from user input
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 74 rules. Its rules look for: a database query built from strings rather than parameterized (SQL or NoSQL injection)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a database query built from strings rather than parameterized (SQL or NoSQL injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 2 rules. Its rules look for: a database query built from strings rather than parameterized (SQL or NoSQL injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a database query built from strings rather than parameterized (SQL or NoSQL injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.2.5Level 1StackVet can confirm or fail it

The app never lets input become part of an operating-system command: commands are given their arguments separately, or the input is encoded for the command line.

Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
10 checks speak to it
  • Reads the code: ast.shell-command. Looks for: A shell command is built from a value (only ever in part)
    Needs: nothing: plain sv check
  • Reads the code: ast.shell-command-backticks. Looks for: A command is run with backticks, built from text
    Needs: nothing: plain sv check
  • Reads the code: ast.shell-command-shell-true. Looks for: A command built from text is run through a shell it was asked for (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: bandit, 7 rules. Its rules look for: a function called with shell=True; a process started through the operating system shell; a shell command built from a value and run on another computer through Paramiko's exec_command; a shell wildcard passed to an operating system command; an operating system command run from data that may be untrusted; an operating system command run through a shell (shell=True); and 1 more
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 1 rule. Its rules look for: an operating system command executed from data that may be untrusted
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 1 rule. Its rules look for: OS command injection: an operating system command built from user input
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 47 rules. Its rules look for: an operating system command built from data that may be untrusted (OS command injection)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 5 rules. Its rules look for: an operating system command built from data that may be untrusted (OS command injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 2 rules. Its rules look for: an operating system command built from data that may be untrusted (OS command injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 3 rules. Its rules look for: an operating system command built from data that may be untrusted (OS command injection); user input reaching Kernel.open, IO.read, or a similar call, which runs a command when the name starts with a pipe (|)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.2.6Level 2StackVet can confirm or fail it

The app protects against LDAP injection, so nobody can change a directory query with what they type.

Verify that the application protects against LDAP injection vulnerabilities, or that specific security controls to prevent LDAP injection have been implemented.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Outside tools: semgrep, 3 rules. Its rules look for: an LDAP query built from untrusted data (LDAP injection)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: an LDAP query built from untrusted data (LDAP injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has ldap. Otherwise the report says: “No LDAP client library is used, so LDAP injection is not possible.”
V1.2.7Level 2StackVet can confirm or fail it

XPath queries are parameterized or precompiled, so input cannot change what the query asks (XPath injection).

Verify that the application is protected against XPath injection attacks by using query parameterization or precompiled queries.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools: semgrep, 1 rule. Its rules look for: an XPath query built from untrusted data (XPath injection)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: an XPath query built from untrusted data (XPath injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: an XPath query built from untrusted data (XPath injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has xpath. Otherwise the report says: “No XPath library is used.”
V1.2.8Level 2StackVet can only show it missing

Any LaTeX processor runs securely, without --shell-escape and with an allowlist of commands, to prevent LaTeX injection.

Verify that LaTeX processors are configured securely (such as not using the "--shell-escape" flag) and an allowlist of commands is used to prevent LaTeX injection attacks.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.latex-shell-escape. Looks for: LaTeX is started with shell escape turned on (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has latex. Otherwise the report says: “No LaTeX processing library is used.”
V1.2.9Level 2StackVet can confirm or fail it

Special characters put into a regular expression are escaped, so they are not read as metacharacters.

Verify that the application escapes special characters in regular expressions (typically using a backslash) to prevent them from being misinterpreted as metacharacters.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a regular expression built from user input without escaping its special characters, so they are read as metacharacters
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a regular expression built from user input without escaping its special characters, so they are read as metacharacters
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a regular expression built from user input without escaping its special characters, so they are read as metacharacters
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.2.10Level 3No check yet

When the app exports a spreadsheet or CSV file, a field starting with =, +, -, @, a tab, or a null character is escaped with a single quote, so the spreadsheet cannot run it as a formula (CSV and formula injection).

Verify that the application is protected against CSV and Formula Injection. The application must follow the escaping rules defined in RFC 4180 sections 2.6 and 2.7 when exporting CSV content. Additionally, when exporting to CSV or other spreadsheet formats (such as XLS, XLSX, or ODF), special characters (including '=', '+', '-', '@', '\t' (tab), and '\0' (null character)) must be escaped with a single quote if they appear as the first character in a field value.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.

V1.3 Sanitization

V1.3.1Level 1StackVet can only show it missing

HTML that people write in a rich-text editor is cleaned with a well-known, secure HTML sanitizing library or framework feature before it is used.

Verify that all untrusted HTML input from WYSIWYG editors or similar is sanitized using a well-known and secure HTML sanitization library or framework feature.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: config.rich-text-without-sanitizer. Looks for: A rich-text editor is used and no HTML sanitizer is anywhere in the app (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has rich text. Otherwise the report says: “This app takes no rich text from an editor, and has no AI feature whose answers it shows as HTML, so there is no untrusted HTML to sanitize.” When the app has AI features. Otherwise the report says: “This app takes no rich text from an editor, and has no AI feature whose answers it shows as HTML, so there is no untrusted HTML to sanitize.”
V1.3.2Level 1StackVet can confirm or fail it

The app does not run text as code (eval, SpEL, and the like); where there is truly no alternative, any user input in it is sanitized first.

Verify that the application avoids the use of eval() or other dynamic code execution features such as Spring Expression Language (SpEL). Where there is no alternative, any user input being included must be sanitized before being executed.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.dynamic-code-execution. Looks for: Code is built at run time and executed (only ever in part)
    Needs: nothing: plain sv check
  • Outside tools: bandit, 1 rule. Its rules look for: eval used to execute code built at runtime
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 4 rules. Its rules look for: dangerous eval: user input handed to eval or another dynamic code execution feature; dangerous send: a method chosen by user input is called, a dynamic code execution feature; unsafe method reflection: a method chosen by user input is looked up and called, a dynamic code execution feature; unsafe reflection: a class chosen by user input is loaded with constantize, a dynamic code execution feature
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 47 rules. Its rules look for: an agent tool that runs arbitrary code, not isolated in a least-privilege sandbox; dynamic code execution, such as eval, on data that may be untrusted
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 3 rules. Its rules look for: dynamic code execution, such as eval, on data that may be untrusted
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: dynamic code execution, such as eval, on data that may be untrusted
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 2 rules. Its rules look for: dynamic code execution, such as eval, on data that may be untrusted
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.3.3Level 2The owner answers

Data passed to a potentially dangerous place is sanitized first: only characters safe there are allowed, and input that is too long is trimmed.

Verify that data being passed to a potentially dangerous context is sanitized beforehand to enforce safety measures, such as only allowing characters which are safe for this context and trimming input which is too long.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Input is cleaned before it reaches a dangerous place. Ask your AI coding tool to list every place the app passes something a person typed into another program: a shell command, a file path, an email header, a spreadsheet export, a search sent elsewhere. For each, look at what it does to the input first. It should allow only the characters that place can safely take, and cut off input that is too long. Then try one: put a semicolon, a quote mark, or a very long line into that field, and check the result is refused or harmless.
StackVet shows where to look in the code: locate.dangerous-places lists the places.
When it applies
To every app held to its level.
V1.3.4Level 2StackVet can confirm or fail it

SVG images people upload are validated or sanitized to keep only safe tags and attributes, with no scripts or foreignObject.

Verify that user-supplied Scalable Vector Graphics (SVG) scriptable content is validated or sanitized to contain only tags and attributes (such as draw graphics) that are safe for the application, e.g., do not contain scripts and foreignObject.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.uploaded-svg-keeps-script. If it fails: An SVG image can carry a script. Stored as it came in and opened from this app's own address, it runs as the app for whoever opens it, with their cookies. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads.
V1.3.5Level 2The owner answers

Markdown, CSS or XSL stylesheets, BBCode, or other template text people supply is sanitized, or its scripting is disabled.

Verify that the application sanitizes or disables user-supplied scriptable or expression template language content, such as Markdown, CSS or XSL stylesheets, BBCode, or similar.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Text people write cannot run as code in the page. If people can write formatted text the app shows to others (Markdown, a comment box, a profile with styling, uploaded stylesheets), try writing a script inside it: a Markdown link to javascript:alert(1), or an HTML <script> tag inside the text. Open the page where it is shown, as another user. Nothing should pop up, and the raw tags should be shown as text or removed. If the app takes no formatted text from people, write that down; it does not apply.
When it applies
When the app has rich text. Otherwise the report says: “This app takes no Markdown, stylesheets, templates, BBCode, or similar from people, and has no AI feature whose answers it renders, so there is none to sanitize or turn off.” When the app has AI features. Otherwise the report says: “This app takes no Markdown, stylesheets, templates, BBCode, or similar from people, and has no AI feature whose answers it renders, so there is none to sanitize or turn off.”
V1.3.6Level 2StackVet can confirm or fail it

When the app calls another service with untrusted data, the protocol, domain, path, and port are checked against an allowlist, so it cannot be steered elsewhere (server-side request forgery, SSRF).

Verify that the application protects against Server-side Request Forgery (SSRF) attacks, by validating untrusted data against an allowlist of protocols, domains, paths and ports and sanitizing potentially dangerous characters before using the data to call another service.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.fetch-address-from-request. Looks for: An outgoing request goes to an address taken from the incoming one (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.fetch-goes-anywhere. If it fails: The feature fetches whatever address it is given, including one on the app's own private network that nobody listed. Somebody can use it to make the server reach places only the server can reach: internal services, a cloud provider's metadata address that hands out the server's credentials, or the app's own admin pages. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Outside tools: gosec, 1 rule. Its rules look for: an outbound request made to a URL built from untrusted input, which is server-side request forgery
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 33 rules. Its rules look for: a server-side request to a URL taken from untrusted data (server-side request forgery)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a server-side request to a URL taken from untrusted data (server-side request forgery)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 2 rules. Its rules look for: a server-side request to a URL taken from untrusted data (server-side request forgery)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a server-side request to a URL taken from untrusted data (server-side request forgery)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.3.7Level 2StackVet can confirm or fail it

Templates are never built from untrusted input; where there is no alternative, the input is sanitized or strictly validated, to stop template injection.

Verify that the application protects against template injection attacks by not allowing templates to be built based on untrusted input. Where there is no alternative, any untrusted input being included dynamically during template creation must be sanitized or strictly validated.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
5 checks speak to it
  • Reads the code: ast.template-built-from-value. Looks for: A page template is built from a value (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: brakeman, 2 rules. Its rules look for: template injection: an ERB template built from user input; template injection: user input rendered as an inline template
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 4 rules. Its rules look for: a template built from untrusted input (template injection)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a template built from untrusted input (template injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a template built from untrusted input (template injection)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.3.8Level 2The owner answers

Untrusted input is sanitized before JNDI queries, and JNDI is configured securely to prevent JNDI injection.

Verify that the application appropriately sanitizes untrusted input before use in Java Naming and Directory Interface (JNDI) queries and that JNDI is configured securely to prevent JNDI injection attacks.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Directory lookups in Java cannot be steered by input. This applies only to an app written in Java or another language that runs on Java. Search the code for InitialContext, lookup(, and ldap:, and check that nothing a person typed reaches the name being looked up. Then check the version of the logging library: Log4j must be 2.17.1 or later, since older versions let a line of text start such a lookup. If the app has no Java in it, write that down; it does not apply.
When it applies
When the app has jndi. Otherwise the report says: “JNDI is a Java technology and this app does not run on the JVM.”
V1.3.9Level 2The owner answers

Content is sanitized before it is sent to memcache, to prevent injection.

Verify that the application sanitizes content before it is sent to memcache to prevent injection attacks.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where the app saves things in memcache (a fast store for temporary data), does it clean what people send before using it as a name or a value there, so they cannot sneak in a command of their own?
StackVet shows where to look in the code: locate.memcache lists the places.
When it applies
When the app has memcache. Otherwise the report says: “No memcache client library is used.”
V1.3.10Level 2StackVet can confirm or fail it

Format strings that could resolve in an unexpected or malicious way are sanitized before they are processed.

Verify that format strings which might resolve in an unexpected or malicious way when used are sanitized before being processed.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools: semgrep, 2 rules. Its rules look for: a format string built from untrusted input
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a format string built from untrusted input
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a format string built from untrusted input
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has format strings. Otherwise the report says: “This app's languages have no C-style format strings that user input could reach.”
V1.3.11Level 2StackVet can confirm or fail it

Input is sanitized before it reaches a mail system, to protect against SMTP or IMAP injection.

Verify that the application sanitizes user input before passing to mail systems to protect against SMTP or IMAP injection.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.mail-header-injected. If it fails: A line break typed into the address field becomes a new header of the email the app sends, so anybody can add recipients and make the app's own mail account send its reset email, or spam and phishing in its name, wherever they like. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has email. Otherwise the report says: “This app does not send email, so there is no mail system that user input could reach.”
V1.3.12Level 3StackVet can confirm or fail it

Regular expressions (text patterns) are written so a crafted input cannot make them run almost forever, and untrusted input is cleaned first (ReDoS).

Verify that regular expressions are free from elements causing exponential backtracking, and ensure untrusted input is sanitized to mitigate ReDoS or Runaway Regex attacks.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
5 checks speak to it
  • Outside tools: brakeman, 1 rule. Its rules look for: regular expression denial of service: a regular expression built from user input can cause exponential backtracking
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 2 rules. Its rules look for: a regular expression open to exponential backtracking (ReDoS)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 2 rules. Its rules look for: a regular expression open to exponential backtracking (ReDoS)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 2 rules. Its rules look for: a regular expression open to exponential backtracking (ReDoS)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 2 rules. Its rules look for: a regular expression open to exponential backtracking (ReDoS)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.

V1.4 Memory, String, and Unmanaged Code

V1.4.1Level 2StackVet can only show it missing

The code uses memory-safe strings, safer memory copies, and checked pointer arithmetic, to prevent stack, buffer, or heap overflows.

Verify that the application uses memory-safe string, safer memory copy and pointer arithmetic to detect or prevent stack, buffer, or heap overflows.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools: semgrep, 3 rules. Its rules look for: gets, which reads input with no limit on its length and can overflow the buffer; strcat or a similar join with no length limit, which can overflow the buffer; strcpy or a similar copy with no length limit, which can overflow the buffer (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has unmanaged code. Otherwise the report says: “This app's languages are memory-safe and it contains no unmanaged (C/C++) code.”
V1.4.2Level 2StackVet can only show it missing

Sign, range, and input checks prevent integer overflows.

Verify that sign, range, and input validation techniques are used to prevent integer overflows.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools you turn on: codeql-cpp, 7 rules. Its rules look for: a check for integer addition overflowing that cannot work as written; a check for signed integer overflow that relies on the overflow itself, which C leaves undefined; a loop comparing a narrow counter with a wider bound, so the counter overflows and wraps around before reaching it; a multiplication done in a narrow integer type and only then converted to a wider one, so it can overflow first; an allocation whose size comes from outside the program unchecked, which can overflow or exhaust memory; an unsigned difference compared with zero, which is never below it, so an integer overflow below zero goes unseen; and 1 more (only shows it missing)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has unmanaged code. Otherwise the report says: “This app's languages are memory-safe and it contains no unmanaged (C/C++) code.”
V1.4.3Level 2StackVet can only show it missing

Memory and resources are released when done, and pointers to freed memory are removed or set to null, to prevent use-after-free bugs.

Verify that dynamically allocated memory and resources are released, and that references or pointers to freed memory are removed or set to null to prevent dangling pointers and use-after-free vulnerabilities.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools: semgrep, 2 rules. Its rules look for: memory freed twice; memory used after it was freed (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has unmanaged code. Otherwise the report says: “This app's languages are memory-safe and it contains no unmanaged (C/C++) code.”

V1.5 Safe Deserialization

V1.5.1Level 1StackVet can confirm or fail it

XML parsers are set up restrictively, with dangerous features such as external entities turned off, so XML cannot be used for an XXE attack.

Verify that the application configures XML parsers to use a restrictive configuration and that unsafe features such as resolving external entities are disabled to prevent XML eXternal Entity (XXE) attacks.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Outside tools: semgrep, 26 rules. Its rules look for: an XML parser that resolves external entities (XXE)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: an XML parser that resolves external entities (XXE)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: an XML parser that resolves external entities (XXE)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: an XML parser that resolves external entities (XXE)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has XML. Otherwise the report says: “No XML parser is used, so XML external entity (XXE) attacks are not possible.”
V1.5.2Level 2StackVet can confirm or fail it

Deserialization of untrusted data is safe, for example with an allowlist of object types, and deserialization known to be insecure is never used on it.

Verify that deserialization of untrusted data enforces safe input handling, such as using an allowlist of object types or restricting client-defined object types, to prevent deserialization attacks. Deserialization mechanisms that are explicitly defined as insecure must not be used with untrusted input.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.unsafe-deserialization. Looks for: Data from outside is turned back into objects unsafely (only ever in part)
    Needs: nothing: plain sv check
  • Outside tools: bandit, 3 rules. Its rules look for: marshal used to deserialize data that may be untrusted; pickle used to deserialize data that may be untrusted; yaml.load used without a safe loader, which deserializes arbitrary objects
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 2 rules. Its rules look for: cookies deserialized with Marshal, unsafe deserialization of untrusted data; unsafe deserialization of untrusted data with Marshal or YAML
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 33 rules. Its rules look for: deserialization of untrusted data into arbitrary objects
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: deserialization of untrusted data into arbitrary objects
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: deserialization of untrusted data into arbitrary objects
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: deserialization of untrusted data into arbitrary objects
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V1.5.3Level 3The owner answers

When the app reads one kind of data (JSON, XML, a web address) in more than one place, every parser reads it the same way and with the same character encoding, so an attacker cannot make two parts disagree about what it says.

Verify that different parsers used in the application for the same data type (e.g., JSON parsers, XML parsers, URL parsers), perform parsing in a consistent way and use the same character encoding mechanism to avoid issues such as JSON Interoperability vulnerabilities or different URI or file parsing behavior being exploited in Remote File Inclusion (RFI) or Server-side Request Forgery (SSRF) attacks.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where two parts of the app (or the app and something in front of it) both read the same kind of data, a web address or a JSON message, do they always read it the same way, so a trick that fools one cannot slip past the other?
When it applies
To every app held to its level.

V2 Validation and Business Logic

V2.1 Validation and Business Logic Documentation

V2.1.1Level 1The owner answers

The app's documentation says what valid data looks like for each kind of input: an email address, a phone number, a card number, or the app's own formats.

Verify that the application's documentation defines input validation rules for how to check the validity of data items against an expected structure. This could be common data formats such as credit card numbers, email addresses, telephone numbers, or it could be an internal data format.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
For each thing people type into the app (a name, an email address, a date, an amount), what does a good one look like, how long may it be, and what should the app do with one that is wrong?
StackVet shows where to look in the code: locate.validation-rules lists the places.
When it applies
To every app held to its level.
V2.1.2Level 2The owner answers

The documentation says how to check that related pieces of data make sense together, such as a suburb matching its ZIP code.

Verify that the application's documentation defines how to validate the logical and contextual consistency of combined data items, such as checking that suburb and ZIP code match.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Which things people enter have to make sense together (a start date before an end date, say), and how does the app check them?
StackVet shows where to look in the code: locate.validation-rules lists the places.
When it applies
To every app held to its level.
V2.1.3Level 2The owner answers

The documentation sets out the business logic limits and validations, per user and across the whole application.

Verify that expectations for business logic limits and validations are documented, including both per-user and globally across the application.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
How many of something may one person make or do, and in how long? And is there any limit for the whole app, such as a total per day?
StackVet shows where to look in the code: locate.availability-brakes lists the places.
When it applies
To every app held to its level.

V2.2 Input Validation

V2.2.1Level 1StackVet can confirm or fail it

Input is checked against what the app expects (allowed values, patterns, ranges, or structure); at level 1, at least the input used to make business or security decisions.

Verify that input is validated to enforce business or functional expectations for that input. This should either use positive validation against an allow list of values, patterns, and ranges, or be based on comparing the input to an expected structure and logical limits according to predefined rules. For L1, this can focus on input which is used to make specific business or security decisions. For L2 and up, this should apply to all input.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.input-length-unlimited. If it fails: The app keeps whatever length of text it is sent. Text no form needs, saved by the thousand, fills the database and slows every page that shows it, and a limit nobody wrote down is one nobody can rely on. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.input-out-of-range-stored. If it fails: A value outside the range the app is meant to take is saved as it is: a quantity of minus one, or more than there is, goes on to whatever reads it next, where a total, a price, or a stock count comes out wrong. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Input is checked against what the app expects. List the places the app takes something typed or sent in that decides what happens next: an amount, a quantity, a date, a status, a role, a choice from a list. For each, try a value it should refuse: a negative or huge number, a date in the past, a word that is not one of the choices, an empty field. The app should refuse it with a message, not accept it and carry on. A form that only checks in the browser does not count: send the same value again with the browser's tools, or ask your AI coding tool to show you the check on the server.
StackVet shows where to look in the code: locate.validation-rules lists the places.
When it applies
To every app held to its level.
V2.2.2Level 1StackVet can only show it missing

Input is validated on the server, the trusted side; checks in the browser help people but are never relied on for security.

Verify that the application is designed to enforce input validation at a trusted service layer. While client-side validation improves usability and should be encouraged, it must not be relied upon as a security control.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.validation-only-in-the-browser. If it fails: The rule the form shows a person is not applied on the server, so anybody sending the request directly — which takes no special tools — can put in whatever they like. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When someone types something into a form, does the server check it before using it, and not only the page in their browser (which anyone can skip)?
StackVet shows where to look in the code: locate.validation-rules lists the places.
When it applies
To every app held to its level.
V2.2.3Level 2The owner answers

The app checks that combinations of related data items are reasonable, by the rules set out beforehand.

Verify that the application ensures that combinations of related data items are reasonable according to the pre-defined rules.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Details that belong together are refused when they do not fit. sv does not check this: which details must fit together is a rule of your own business, such as a return date after the departure date, a child's ticket only for a child's age, or a delivery only to a country you ship to, and nothing in the code says which rules were meant. Write down each pair or group of details in your app that must agree, and the rule for each. Then try to save a combination that breaks each rule, once through the form and once with a value changed in the browser before it is sent (right-click, Inspect, and edit the field), and check that the app refuses it and keeps nothing.
When it applies
To every app held to its level.

V2.3 Business Logic Security

V2.3.1Level 1A check helps; a person decides

A multi-step process, such as a checkout, runs its steps in order for the same user, and no step can be skipped.

Verify that the application will only process business logic flows for the same user in the expected sequential step order and without skipping steps.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Signed in: probe.flow-step-skipped. If it fails: A step that can be skipped is a check that can be skipped: the payment before the order, the confirmation before the change, the approval before the release.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Steps cannot be skipped or done out of order. Take a flow with more than one step — checkout, sign-up with a confirmation, anything with a "next" button. Write down the address of the last step. Start the flow again, and go straight to that address without doing the steps before it. It should refuse. Then try the steps in the wrong order, and try the same step twice. Describing the flow in stackvet.toml as flow under [stack.run.users] lets sv report --run try two skips, one wrong order, and one repeated step for you; other orders, and the last step sent again after the flow finished, are still yours.
When it applies
To every app held to its level.
V2.3.2Level 2StackVet can confirm or fail it

The business logic limits the documentation sets out are enforced in the application, so they cannot be exploited.

Verify that business logic limits are implemented per the application's documentation to avoid business logic flaws being exploited.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.business-limit-not-held. If it fails: A limit the app's own documentation states is not held: one person can do more than the rules allow, whatever the limit is there to protect (a free plan's allowance, stock, a fair share). (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
The business limits you wrote down are the ones the app enforces. Take each limit from your security notes — so many of something per person, so many per day — and try to go past it in the app. Try it slowly and then quickly, and from two accounts at once if the limit is meant to be global.
When it applies
To every app held to its level.
V2.3.3Level 2The owner answers

Business operations use transactions: each succeeds as a whole or is rolled back to the previous correct state.

Verify that transactions are being used at the business logic level such that either a business logic operation succeeds in its entirety or it is rolled back to the previous correct state.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When one action changes several things at once (an order and the stock it takes, money leaving one account and arriving in another), is it set up so either all of the changes happen or none do, never half?
StackVet shows where to look in the code: locate.transactions, locate.several-writes lists the places.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-DM-04
V2.3.4Level 2A check helps; a person decides

Limited resources, such as theater seats or delivery slots, are locked while being taken, so they cannot be double-booked.

Verify that business logic level locking mechanisms are used to ensure that limited quantity resources (such as theater seats or delivery slots) cannot be double-booked by manipulating the application's logic.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Signed in: probe.action-done-twice. If it fails: Two requests arriving together can both take the one thing there was: the last seat is booked twice, a one-time code pays out twice. Anybody can do it on purpose by sending the same request several times at once. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Two people cannot book the same thing. Only where something is limited in number: a seat, a slot, the last item in stock. Open the app in two browsers, get both to the moment of booking the same one, and confirm both as close together as you can. Exactly one should succeed.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-RR-05
V2.3.5Level 3The owner answers

The most valuable or dangerous actions, such as large money transfers, contract approvals, or safety overrides, need more than one person to approve them.

Verify that high-value business logic flows require multi-user approval to prevent unauthorized or accidental actions. This could include but is not limited to large monetary transfers, contract approvals, access to classified information, or safety overrides in manufacturing.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
For the actions in the app that would do the most harm if done by mistake or by the wrong person (a large payment, signing a contract), does a second person have to approve before it happens?
When it applies
To every app held to its level.

V2.4 Anti-automation

V2.4.1Level 2StackVet can confirm or fail it

Anti-automation controls stop excessive calls to the application's functions, which could leak data, fill it with garbage, use up quotas or costly resources, or deny service.

Verify that anti-automation controls are in place to protect against excessive calls to application functions that could lead to data exfiltration, garbage-data creation, quota exhaustion, rate-limit breaches, denial-of-service, or overuse of costly resources.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.create-rate-unlimited. If it fails: One person, or a script, can create records as fast as it can send them: the app fills with junk, its storage and any per-record costs run up, and others are slowed down. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-RR-07
V2.4.2Level 3No check yet

Business steps expect human timing: transactions sent faster than a person could realistically submit them are refused.

Verify that business logic flows require realistic human timing, preventing excessively rapid transaction submissions.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.

V3 Web Frontend Security

V3.1 Web Frontend Security Documentation

V3.1.1Level 3The owner answers

The app's documentation says which security features a browser must support to use it (such as HTTPS, HSTS, and a Content Security Policy) and what the app does when a browser lacks one, such as warning the user or blocking access.

Verify that application documentation states the expected security features that browsers using the application must support (such as HTTPS, HTTP Strict Transport Security (HSTS), Content Security Policy (CSP), and other relevant HTTP security mechanisms). It must also define how the application must behave when some of these features are not available (such as warning the user or blocking access).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Which safety features must a visitor's browser have to use the app (a secure connection, for one), and what does the app do when a browser lacks one: warn the person, or keep them out?
When it applies
To every app held to its level.

V3.2 Unintended Content Interpretation

V3.2.1Level 1StackVet can confirm or fail it

The browser cannot be tricked into showing a response in the wrong context, such as an API response or an uploaded file opened directly as a page.

Verify that security controls are in place to prevent browsers from rendering content or functionality in HTTP responses in an incorrect context (e.g., when an API, a user-uploaded file or other resource is requested directly). Possible controls could include: not serving the content unless HTTP request header fields (such as Sec-Fetch-\*) indicate it is the correct context, using the sandbox directive of the Content-Security-Policy header field or using the attachment disposition type in the Content-Disposition header field.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.uploaded-file-rendered. If it fails: A page somebody uploaded is shown by the browser as part of this app, so a script in it runs with the app's cookies and can do whatever the signed-in person can.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.saved-page-rendered. If it fails: A page a member saved is shown by the browser as part of this app, so a script in it runs with the app's cookies and can do whatever the person viewing it can. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so it serves no uploaded file that a browser could be tricked into reading as a web page.”
V3.2.2Level 1StackVet can confirm or fail it

Content meant to be shown as text is put on the page with safe functions (such as textContent), so it can never run as HTML or JavaScript.

Verify that content intended to be displayed as text, rather than rendered as HTML, is handled using safe rendering functions (such as createTextNode or textContent) to prevent unintended execution of content such as HTML or JavaScript.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.text-rendered-as-markup. If it fails: Text a person types is put into the page as markup, so anybody who can type into that form can put a script into the page of whoever views it: acting as them, reading what they see, sending it elsewhere.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 2 rules. Its rules look for: HTML output built without output encoding for its context (cross-site scripting); content rendered as HTML with innerHTML, document.write, dangerouslySetInnerHTML or v-html, rather than a safe rendering function (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V3.2.3Level 3StackVet can only show it missing

The page's JavaScript is written so page elements cannot overwrite its variables (DOM clobbering): variables are declared explicitly, types are checked strictly, nothing global is stored on the document object, and code is kept in its own namespace.

Verify that the application avoids DOM clobbering when using client-side JavaScript by employing explicit variable declarations, performing strict type checking, avoiding storing global variables on the document object, and implementing namespace isolation.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.dom-clobbering-fallback. Looks for: Browser code reads a global with a fallback, which a page's own elements can take over (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: ast.document-global-stored. Looks for: Browser code stores a value of its own on the document object (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.

V3.3 Cookie Setup

V3.3.1Level 1StackVet can confirm or fail it

Cookies have the Secure attribute, so they are only sent over HTTPS, and their names use the __Host- or __Secure- prefix.

Verify that cookies have the 'Secure' attribute set, and if the '\__Host-' prefix is not used for the cookie name, the '__Secure-' prefix must be used for the cookie name.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Outside tools: brakeman, 1 rule. Its rules look for: cookies are sent without the Secure attribute
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 8 rules. Its rules look for: a cookie set without the 'Secure' attribute
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a cookie set without the 'Secure' attribute
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a cookie set without the 'Secure' attribute
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so the 'Secure' cookie flag has no effect yet.”
V3.3.2Level 2StackVet can confirm or fail it

Each cookie's SameSite attribute is set to suit its purpose, to limit cross-site request forgery (CSRF) and clickjacking.

Verify that each cookie's 'SameSite' attribute value is set according to the purpose of the cookie, to limit exposure to user interface redress attacks and browser-based request forgery attacks, commonly known as cross-site request forgery (CSRF).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
5 checks speak to it
  • The running app: probe.cookie-attributes. If it fails: A cookie a script can read is a session that any injected script can take. One with no SameSite is a session another site can use on the owner's behalf.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.session-cookie-attributes. If it fails: A session cookie a script can read is a session any injected script can take; one with no SameSite travels with requests another site makes. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 1 rule. Its rules look for: a cookie set without a suitable 'SameSite' attribute
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a cookie set without a suitable 'SameSite' attribute
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a cookie set without a suitable 'SameSite' attribute
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has sign-in.
V3.3.3Level 2StackVet can confirm or fail it

Cookie names start with __Host- unless the cookie is meant to be shared with other hosts.

Verify that cookies have the '__Host-' prefix for the cookie name unless they are explicitly designed to be shared with other hosts.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Your own live site: probe.cookie-without-host-prefix. Looks for: A cookie does not carry the __Host- prefix (only ever in part)
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “The __Host- cookie prefix only works over HTTPS, and this app runs on one computer only, without HTTPS.”
V3.3.4Level 2StackVet can confirm or fail it

A cookie that scripts in the page have no need to read, such as a session token, has the HttpOnly attribute, and its value is only ever sent in the Set-Cookie header.

Verify that if the value of a cookie is not meant to be accessible to client-side scripts (such as a session token), the cookie must have the 'HttpOnly' attribute set and the same value (e. g. session token) must only be transferred to the client via the 'Set-Cookie' header field.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
5 checks speak to it
  • The running app: probe.cookie-attributes. If it fails: A cookie a script can read is a session that any injected script can take. One with no SameSite is a session another site can use on the owner's behalf.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.session-cookie-attributes. If it fails: A session cookie a script can read is a session any injected script can take; one with no SameSite travels with requests another site makes. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 4 rules. Its rules look for: a cookie set without the 'HttpOnly' attribute
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a cookie set without the 'HttpOnly' attribute
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a cookie set without the 'HttpOnly' attribute
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has sign-in.
V3.3.5Level 3StackVet can confirm or fail it

Each cookie the app writes, name and value together, is no longer than 4096 bytes, since a browser silently drops a larger one and the feature relying on it stops working.

Verify that when the application writes a cookie, the cookie name and value length combined are not over 4096 bytes. Overly large cookies will not be stored by the browser and therefore not sent with requests, preventing the user from using application functionality which relies on that cookie.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.cookie-too-large. If it fails: A browser keeps no cookie longer than 4096 bytes, name and value together: it drops it without a word, and whatever the app keeps in it (a session, a cart, a choice) is gone on the next page, for that person only. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.

V3.4 Browser Security Mechanism Headers

V3.4.1Level 1StackVet can confirm or fail it

Every response tells browsers to use only HTTPS for this site (the Strict-Transport-Security header), for at least a year.

Verify that a Strict-Transport-Security header field is included on all responses to enforce an HTTP Strict Transport Security (HSTS) policy. A maximum age of at least 1 year must be defined, and for L2 and up, the policy must apply to all subdomains as well.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Your own live site: probe.no-hsts. Looks for: The site does not tell browsers to always use HTTPS (only ever in part)
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “HTTP Strict Transport Security (HSTS) tells browsers to insist on HTTPS. This app runs on one computer only, without HTTPS, so the header would have no effect.”
V3.4.2Level 1StackVet can confirm or fail it

Cross-origin access (CORS) is allowed only for a fixed origin or origins on an allowlist; when any origin is allowed, the response holds nothing sensitive.

Verify that the Cross-Origin Resource Sharing (CORS) Access-Control-Allow-Origin header field is a fixed value by the application, or if the Origin HTTP request header field value is used, it is validated against an allowlist of trusted origins. When 'Access-Control-Allow-Origin: *' needs to be used, verify that the response does not include any sensitive information.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Reads the code: ast.cors-any-origin-with-credentials. Looks for: Any website may call the app with its visitors' cookies (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.cors-any-origin. If it fails: A site the owner has never heard of can make the browser fetch this app's pages as the person using it, and read what comes back. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Outside tools: semgrep, 7 rules. Its rules look for: a CORS Access-Control-Allow-Origin header that is not a fixed value
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 2 rules. Its rules look for: a CORS Access-Control-Allow-Origin header that is not a fixed value
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V3.4.3Level 2StackVet can confirm or fail it

Every response has a Content-Security-Policy header that only lets the browser load and run trusted content, at least with object-src 'none' and base-uri 'none', and an allowlist, nonces, or hashes.

Verify that HTTP responses include a Content-Security-Policy response header field which defines directives to ensure the browser only loads and executes trusted content or resources, in order to limit execution of malicious JavaScript. As a minimum, a global policy must be used which includes the directives object-src 'none' and base-uri 'none' and defines either an allowlist or uses nonces or hashes. For an L3 application, a per-response policy with nonces or hashes must be defined.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.security-headers. If it fails: These are the instructions a browser follows to protect the person using the app. Without them the browser does what a page tells it, including a page somebody else wrote.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.private-page-headers. If it fails: These are the instructions a browser follows to protect the person using the app, and a private page is where a page somebody else wrote could do the most: read what the person sees and act as them.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V3.4.4Level 2StackVet can confirm or fail it

Every response has the header X-Content-Type-Options: nosniff, so browsers never guess a response's type.

Verify that all HTTP responses contain an 'X-Content-Type-Options: nosniff' header field. This instructs browsers not to use content sniffing and MIME type guessing for the given response, and to require the response's Content-Type header field value to match the destination resource. For example, the response to a request for a style is only accepted if the response's Content-Type is 'text/css'. This also enables the use of the Cross-Origin Read Blocking (CORB) functionality by the browser.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.security-headers. If it fails: These are the instructions a browser follows to protect the person using the app. Without them the browser does what a page tells it, including a page somebody else wrote.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.private-page-headers. If it fails: These are the instructions a browser follows to protect the person using the app, and a private page is where a page somebody else wrote could do the most: read what the person sees and act as them.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V3.4.5Level 2StackVet can confirm or fail it

The app sets a referrer policy, so addresses with sensitive data in them are not leaked to other sites through the Referer header.

Verify that the application sets a referrer policy to prevent leakage of technically sensitive data to third-party services via the 'Referer' HTTP request header field. This can be done using the Referrer-Policy HTTP response header field or via HTML element attributes. Sensitive data could include path and query data in the URL, and for internal non-public applications also the hostname.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.security-headers. If it fails: These are the instructions a browser follows to protect the person using the app. Without them the browser does what a page tells it, including a page somebody else wrote.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.private-page-headers. If it fails: These are the instructions a browser follows to protect the person using the app, and a private page is where a page somebody else wrote could do the most: read what the person sees and act as them.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V3.4.6Level 2StackVet can confirm or fail it

Every response's Content-Security-Policy has a frame-ancestors directive, so other sites cannot embed the app's pages unless that is intended.

Verify that the web application uses the frame-ancestors directive of the Content-Security-Policy header field for every HTTP response to ensure that it cannot be embedded by default and that embedding of specific resources is allowed only when necessary. Note that the X-Frame-Options header field, although supported by browsers, is obsolete and may not be relied upon.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.security-headers. If it fails: These are the instructions a browser follows to protect the person using the app. Without them the browser does what a page tells it, including a page somebody else wrote.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.private-page-headers. If it fails: These are the instructions a browser follows to protect the person using the app, and a private page is where a page somebody else wrote could do the most: read what the person sees and act as them.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V3.4.7Level 3StackVet can confirm or fail it

The Content-Security-Policy header names a location where the browser reports violations of the policy.

Verify that the Content-Security-Policy header field specifies a location to report violations.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.csp-no-report. If it fails: A Content-Security-Policy with nowhere to report blocks an attack silently: nobody learns it was tried, or that the policy is breaking a real page.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V3.4.8Level 3StackVet can confirm or fail it

Every response that opens a page (such as text/html) carries a Cross-Origin-Opener-Policy header set to same-origin or same-origin-allow-popups, so another window cannot reach into this one (tabnabbing, frame counting).

Verify that all HTTP responses that initiate a document rendering (such as responses with Content-Type text/html), include the Cross‑Origin‑Opener‑Policy header field with the same-origin directive or the same-origin-allow-popups directive as required. This prevents attacks that abuse shared access to Window objects, such as tabnabbing and frame counting.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.opener-policy-missing. If it fails: Without it, a page the app's page opens — or one that opened it — keeps a handle to its window, which cross-window attacks use to steer it or to learn about it.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.

V3.5 Browser Origin Separation

V3.5.1Level 1StackVet can confirm or fail it

Requests that do something sensitive are checked to come from the app itself (with an anti-forgery token or a special header), to stop cross-site request forgery (CSRF), unless the CORS preflight already does that.

Verify that, if the application does not rely on the CORS preflight mechanism to prevent disallowed cross-origin requests to use sensitive functionality, these requests are validated to ensure they originate from the application itself. This may be done by using and validating anti-forgery tokens or requiring extra HTTP header fields that are not CORS-safelisted request-header fields. This is to defend against browser-based request forgery attacks, commonly known as cross-site request forgery (CSRF).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
8 checks speak to it
  • Reads the code: ast.csrf-protection-off. Looks for: Protection against forged requests is switched off (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.cross-site-request-accepted. If it fails: Another website can make a signed-in person's browser send this request, and the app carries it out as them.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.csrf-token-shared. If it fails: The sign-in form's anti-forgery token is the same for everybody, so another website can fetch it once and put it in a form of its own: the token stops nothing it was meant to stop, such as signing a visitor in to an account the other site chose. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: brakeman, 3 rules. Its rules look for: cross-site request forgery protection does not raise an exception, so forged requests are not refused; cross-site request forgery protection is disabled, so requests are not validated to originate from the application; cross-site request forgery protection is missing, so requests are not validated to originate from the application
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 9 rules. Its rules look for: cross-site request forgery protection turned off
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: cross-site request forgery protection turned off
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: cross-site request forgery protection turned off
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: cross-site request forgery protection turned off
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has sign-in. Otherwise the report says: “Cross-site request forgery protection defends signed-in users; this app has no sign-in and no sessions to abuse.”
V3.5.2Level 1StackVet can confirm or fail it

Where the app relies on the browser's CORS preflight to block other sites, sensitive actions cannot be reached by a request that skips the preflight.

Verify that, if the application relies on the CORS preflight mechanism to prevent disallowed cross-origin use of sensitive functionality, it is not possible to call the functionality with a request which does not trigger a CORS-preflight request. This may require checking the values of the 'Origin' and 'Content-Type' request header fields or using an extra header field that is not a CORS-safelisted header-field.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.preflight-skipped. If it fails: The app takes this request in a form a page on another site can send without the browser asking the app first, so a signed-in person's browser can be made to carry it out for that site. A JSON request is only safe from that because browsers ask first, and this one did not need to be JSON.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V3.5.3Level 1StackVet can only show it missing

Sensitive actions use POST, PUT, PATCH, or DELETE, never GET or another method meant to be safe, or the request's Sec-Fetch headers are checked strictly instead.

Verify that HTTP requests to sensitive functionality use appropriate HTTP methods such as POST, PUT, PATCH, or DELETE, and not methods defined by the HTTP specification as "safe" such as HEAD, OPTIONS, or GET. Alternatively, strict validation of the Sec-Fetch-* request header fields can be used to ensure that the request did not originate from an inappropriate cross-origin call, a navigation request, or a resource load (such as an image source) where this is not expected.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.sign-out-on-get. If it fails: Signing out by visiting an address means any page, image, or link can sign a person out without their asking, and it is a sign that other actions may be reachable the same way. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “Cross-site request forgery protection defends signed-in users; this app has no sign-in and no sessions to abuse.”
V3.5.4Level 2The owner answers

Separate applications are hosted on different hostnames, so the browser's same-origin policy keeps them apart.

Verify that separate applications are hosted on different hostnames to leverage the restrictions provided by same-origin policy, including how documents or scripts loaded by one origin can interact with resources from another origin and hostname-based restrictions on cookies.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If you run more than one application, does each have an address of its own (app.example.com and admin.example.com), rather than sharing one address in different folders, so a browser keeps their pages and cookies apart?
When it applies
When the app has shared hostname. Otherwise the report says: “This is a single application on its own address; no separate applications share its hostname.”
V3.5.5Level 2StackVet can confirm or fail it

Messages received through postMessage are thrown away if they come from an origin that is not trusted, or are not well formed.

Verify that messages received by the postMessage interface are discarded if the origin of the message is not trusted, or if the syntax of the message is invalid.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Outside tools: semgrep, 1 rule. Its rules look for: postMessage data used without checking the origin of the message
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: postMessage data used without checking the origin of the message
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has postmessage. Otherwise the report says: “This app's pages do not use the browser postMessage feature.”
V3.5.6Level 3StackVet can only show it missing

JSONP, an old way of sharing data across sites through a script, is turned off everywhere in the app (Cross-Site Script Inclusion).

Verify that JSONP functionality is not enabled anywhere across the application to avoid Cross-Site Script Inclusion (XSSI) attacks.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.jsonp-enabled. If it fails: JSONP wraps data in a call to a function the asker names, which any other site can load with a script tag — and with the visitor's cookies, so it reads what they can read. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V3.5.7Level 3No check yet

Data that needs authorization to see is never put into script responses such as JavaScript files, which another site could load (Cross-Site Script Inclusion).

Verify that data requiring authorization is not included in script resource responses, like JavaScript files, to prevent Cross-Site Script Inclusion (XSSI) attacks.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.
V3.5.8Level 3No check yet

Files that need a sign-in to see (images, videos, scripts, documents) can be loaded or embedded by another site only when intended, by checking the Sec-Fetch-* request headers or setting a strict Cross-Origin-Resource-Policy header.

Verify that authenticated resources (such as images, videos, scripts, and other documents) can be loaded or embedded on behalf of the user only when intended. This can be accomplished by strict validation of the Sec-Fetch-* HTTP request header fields to ensure that the request did not originate from an inappropriate cross-origin call, or by setting a restrictive Cross-Origin-Resource-Policy HTTP response header field to instruct the browser to block returned content.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.

V3.6 External Resource Integrity

V3.6.1Level 3StackVet can only show it missing

Scripts, styles, and fonts are loaded from another host (such as a CDN) only when they are fixed, versioned files checked by Subresource Integrity, a fingerprint the browser verifies; otherwise each one has a documented security decision.

Verify that client-side assets, such as JavaScript libraries, CSS, or web fonts, are only hosted externally (e.g., on a Content Delivery Network) if the resource is static and versioned and Subresource Integrity (SRI) is used to validate the integrity of the asset. If this is not possible, there should be a documented security decision to justify this for each resource.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools: semgrep, 1 rule. Its rules look for: a script or stylesheet loaded from another site with no integrity hash (Subresource Integrity) (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.

V3.7 Other Browser Security Considerations

V3.7.1Level 2StackVet can only show it missing

The app uses only client-side technologies that are still supported and secure, never Flash, ActiveX, Silverlight, Java applets, or the like.

Verify that the application only uses client-side technologies which are still supported and considered secure. Examples of technologies which do not meet this requirement include NSAPI plugins, Flash, Shockwave, ActiveX, Silverlight, NACL, or client-side Java applets.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: config.client-tech-unsupported. Looks for: The app's pages use client-side technology that is no longer supported (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.
V3.7.2Level 2StackVet can confirm or fail it

The app redirects people automatically to another site it does not control only when that destination is on an allowlist.

Verify that the application will only automatically redirect the user to a different hostname or domain (which is not controlled by the application) where the destination appears on an allowlist.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.open-redirect. Looks for: The app redirects to a destination built from a value (only ever in part)
    Needs: nothing: plain sv check
  • Signed in: probe.open-redirect. If it fails: A link to the app's own sign-in page can send whoever follows it on to any site, which can look like the app and ask for the password again. People trust the link because it begins with the app's own address. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: brakeman, 1 rule. Its rules look for: open redirect: the application redirects to a URL taken from user input, which can be a different domain
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 12 rules. Its rules look for: a redirect to a destination taken from the request (open redirect)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 2 rules. Its rules look for: a redirect to a destination taken from the request (open redirect)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a redirect to a destination taken from the request (open redirect)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a redirect to a destination taken from the request (open redirect)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V3.7.3Level 3The owner answers

When a link takes the user to an address outside the app's control, the app says so first and lets them cancel.

Verify that the application shows a notification when the user is being redirected to a URL outside of the application's control, with an option to cancel the navigation.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app sends someone to another website, does it first show a page saying where they are going, with a way to go back instead?
When it applies
To every app held to its level.
V3.7.4Level 3StackVet can confirm or fail it

The app's main domain is on the browsers' HSTS preload list, so browsers use a secure connection to it from the very first visit, not only after reading the Strict-Transport-Security header.

Verify that the application's top-level domain (e.g., site.tld) is added to the public preload list for HTTP Strict Transport Security (HSTS). This ensures that the use of TLS for the application is built directly into the main browsers, rather than relying only on the Strict-Transport-Security response header field.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Your own live site: live.hsts-not-preloaded. Looks for: The site is not on the HSTS preload list
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
To every app held to its level.
V3.7.5Level 3The owner answers

When a browser lacks a security feature the app expects, the app behaves as its documentation says, such as warning the user or blocking access.

Verify that the application behaves as documented (such as warning the user or blocking access) if the browser used to access the application does not support the expected security features.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
The app behaves as written when a browser lacks a security feature. Open what the security notes say for V3.1.1: the browser features the app expects, and what it does without one. Then try each: open the app in an old browser, or with JavaScript or cookies turned off, and check it warns or blocks just as written.
When it applies
To every app held to its level.

V4 API and Web Service

V4.1 Generic Web Service Security

V4.1.1Level 1StackVet can confirm or fail it

Every response with a body says what kind of content it is (the Content-Type header) and matches it, including the character set, such as UTF-8.

Verify that every HTTP response with a message body contains a Content-Type header field that matches the actual content of the response, including the charset parameter to specify safe character encoding (e.g., UTF-8, ISO-8859-1) according to IANA Media Types, such as "text/", "/+xml" and "/xml".

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.content-type. If it fails: A browser left to guess what a response is can guess wrong, and treat text an attacker wrote as a page to run.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V4.1.2Level 2StackVet can only show it missing

Only pages people open in a browser redirect from HTTP to HTTPS; other endpoints do not, so a client sending unencrypted requests is noticed.

Verify that only user-facing endpoints (intended for manual web-browser access) automatically redirect from HTTP to HTTPS, while other services or endpoints do not implement transparent redirects. This is to avoid a situation where a client is erroneously sending unencrypted HTTP requests, but since the requests are being automatically redirected to HTTPS, the leakage of sensitive data goes undiscovered.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Your own live site: probe.api-redirected-to-https. Looks for: The app's API sends a program over plain HTTP on to HTTPS without a word (only shows it missing)
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no HTTP-to-HTTPS redirect to configure.”
V4.1.3Level 2StackVet can only show it missing

Header fields that a proxy or load balancer sets, such as X-Forwarded-For or X-Real-IP, cannot be overridden by the end user.

Verify that any HTTP header field used by the application and set by an intermediary layer, such as a load balancer, a web proxy, or a backend-for-frontend service, cannot be overridden by the end-user. Example headers might include X-Real-IP, X-Forwarded-*, or X-User-ID.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.identity-header-trusted. If it fails: Anybody can open a private page as somebody else, without signing in, by adding a header that says who they are. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If something in front of the app (a load balancer, proxy, or gateway) adds information to each request that the app relies on, can the app tell that apart from the same information sent by a visitor?
When it applies
To every app held to its level.
V4.1.4Level 3StackVet can only show it missing

Only the HTTP methods the app or its API supports (OPTIONS for preflight requests included) can be used, and every other method is blocked.

Verify that only HTTP methods that are explicitly supported by the application or its API (including OPTIONS during preflight requests) can be used and that unused methods are blocked.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.unused-method-accepted. If it fails: A route that answers every method does whatever its code does for methods nobody thought about, and rules written for GET and POST — checks against forged requests, caching, logging — may not cover them. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V4.1.5Level 3The owner answers

Highly sensitive requests or transactions, or ones that pass through several systems, carry a digital signature on each message as well as the secure connection.

Verify that per-message digital signatures are used to provide additional assurance on top of transport protections for requests or transactions which are highly sensitive or which traverse a number of systems.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
For the most sensitive messages the app sends or receives (a payment instruction, or one that passes through several systems), is each one signed on its own, so it is protected even if the secure connection is not the whole way?
When it applies
To every app held to its level.

V4.2 HTTP Message Structure Validation

V4.2.1Level 2The owner answers

Every component, from load balancer to application server, decides where each HTTP message ends in the same correct way, to prevent HTTP request smuggling.

Verify that all application components (including load balancers, firewalls, and application servers) determine boundaries of incoming HTTP messages using the appropriate mechanism for the HTTP version to prevent HTTP request smuggling. In HTTP/1.x, if a Transfer-Encoding header field is present, the Content-Length header must be ignored per RFC 2616. When using HTTP/2 or HTTP/3, if a Content-Length header field is present, the receiver must ensure that it is consistent with the length of the DATA frames.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If a request passes through other machines before reaching the app (a load balancer, a firewall), do they all agree on where one request ends and the next begins?
StackVet shows where to look in the code: locate.web-server lists the places.
When it applies
To every app held to its level.
V4.2.2Level 3No check yet

When the app builds HTTP messages, the Content-Length header always agrees with the real length of the content, so the message cannot be read two ways (request smuggling).

Verify that when generating HTTP messages, the Content-Length header field does not conflict with the length of the content as determined by the framing of the HTTP protocol, in order to prevent request smuggling attacks.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.
V4.2.3Level 3The owner answers

The app neither sends nor accepts HTTP/2 or HTTP/3 messages carrying connection-specific header fields such as Transfer-Encoding (response splitting and header injection).

Verify that the application does not send nor accept HTTP/2 or HTTP/3 messages with connection-specific header fields such as Transfer-Encoding to prevent response splitting and header injection attacks.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app talks the newer kinds of web connection (HTTP/2 or HTTP/3), does it, or the server in front of it, refuse messages carrying the old-style connection headers that those kinds forbid?
StackVet shows where to look in the code: locate.web-server lists the places.
When it applies
To every app held to its level.
V4.2.4Level 3The owner answers

The app accepts HTTP/2 and HTTP/3 requests only when their header fields and values hold no line-break characters (CR, LF, or CRLF), which could inject headers.

Verify that the application only accepts HTTP/2 and HTTP/3 requests where the header fields and values do not contain any CR (\r), LF (\n), or CRLF (\r\n) sequences, to prevent header injection attacks.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When a request arrives over HTTP/2 or HTTP/3, does the app or the server in front refuse one whose headers have a hidden line break in them, which could sneak in a header of its own?
StackVet shows where to look in the code: locate.web-server lists the places.
When it applies
To every app held to its level.
V4.2.5Level 3The owner answers

When the app builds and sends requests itself, it keeps the addresses (URIs) and header fields (such as Authorization or Cookie) short enough for the receiving side to accept, so an overly long request cannot make every answer an error (denial of service).

Verify that, if the application (backend or frontend) builds and sends requests, it uses validation, sanitization, or other mechanisms to avoid creating URIs (such as for API calls) or HTTP request header fields (such as Authorization or Cookie), which are too long to be accepted by the receiving component. This could cause a denial of service, such as when sending an overly long request (e.g., a long cookie header field), which results in the server always responding with an error status.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app builds a request to send somewhere (an address with things added to it, or a cookie), does it make sure it never gets too long for the other side to accept, so one long value cannot break every request after it?
When it applies
To every app held to its level.

V4.3 GraphQL

V4.3.1Level 2StackVet can confirm or fail it

GraphQL queries are limited by an allowlist, depth, amount, or cost, so an expensive nested query cannot deny service.

Verify that a query allowlist, depth limiting, amount limiting, or query cost analysis is used to prevent GraphQL or data layer expression Denial of Service (DoS) as a result of expensive, nested queries.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.graphql-no-amount-limit. If it fails: One request can make the server do a thousand times the work of an ordinary one, which is the cheapest way there is to slow an API down for everybody. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has GraphQL. Otherwise the report says: “No GraphQL library is used.”
V4.3.2Level 2StackVet can confirm or fail it

GraphQL introspection is disabled in production, unless the API is meant to be used by other parties.

Verify that GraphQL introspection queries are disabled in the production environment unless the GraphQL API is meant to be used by other parties.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.graphql-introspection. If it fails: The schema is a map of every query and field the API has, including the ones no page uses, handed to whoever asks. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has GraphQL. Otherwise the report says: “No GraphQL library is used.”

V4.4 WebSocket

V4.4.1Level 1StackVet can only show it missing

Every WebSocket connection is encrypted (wss://, WebSocket over TLS).

Verify that WebSocket over TLS (WSS) is used for all WebSocket connections.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.plaintext-websocket-url. Looks for: A WebSocket address without encryption is written into the code (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: semgrep, 1 rule. Its rules look for: a WebSocket connection over ws:// rather than WebSocket over TLS (WSS); a connection made without an encrypted protocol such as TLS (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has WebSockets. Otherwise the report says: “No WebSocket library is used; every request is a normal web request.”
V4.4.2Level 2StackVet can confirm or fail it

When a WebSocket connection opens, its Origin header is checked against a list of allowed origins.

Verify that, during the initial HTTP WebSocket handshake, the Origin header field is checked against a list of origins allowed for the application.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.websocket-origin-unchecked. If it fails: Browsers do not stop cross-site WebSocket connections the way they stop other cross-site requests, so another site can open one as the visitor and read what comes back.
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has WebSockets. Otherwise the report says: “No WebSocket library is used; every request is a normal web request.”
V4.4.3Level 2StackVet can only show it missing

If the app's normal sessions cannot be used for WebSockets, dedicated tokens are used that meet the same session management requirements.

Verify that, if the application's standard session management cannot be used, dedicated tokens are being used for this, which comply with the relevant Session Management security requirements.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.websocket-after-sign-out. If it fails: Somebody who signed out still has a live channel: anybody holding the old cookie, on a shared computer or from a copied request, can keep opening it. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has WebSockets. Otherwise the report says: “No WebSocket library is used; every request is a normal web request.”
V4.4.4Level 2StackVet can confirm or fail it

Dedicated WebSocket session tokens are first obtained or checked through the HTTPS session the person already signed in with.

Verify that dedicated WebSocket session management tokens are initially obtained or validated through the previously authenticated HTTPS session when transitioning an existing HTTPS session to a WebSocket channel.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.websocket-without-session. If it fails: A WebSocket meant for signed-in users that opens without a real session hands whatever it carries to anybody who connects — no sign-in, no password.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has WebSockets. Otherwise the report says: “No WebSocket library is used; every request is a normal web request.”

V5 File Handling

V5.1 File Handling Documentation

V5.1.1Level 2The owner answers

The documentation sets, for each upload feature, the allowed file types and extensions, the largest size (unpacked too), and how files are made safe to download, including what happens to a malicious one.

Verify that the documentation defines the permitted file types, expected file extensions, and maximum size (including unpacked size) for each upload feature. Additionally, ensure that the documentation specifies how files are made safe for end-users to download and process, such as how the application behaves when a malicious file is detected.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Where people can upload a file: which kinds of file are allowed, how big may one be (unpacked, for a zip), and what does the app do with a file that looks dangerous?
StackVet shows where to look in the code: locate.upload-limits lists the places.
When it applies
When the app has file uploads.

V5.2 File Upload and Content

V5.2.1Level 1StackVet can confirm or fail it

The app accepts only files small enough to process without slowing down or being knocked over.

Verify that the application will only accept files of a size which it can process without causing a loss of performance or a denial of service attack.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oversized-file-accepted. If it fails: A file larger than the app says it accepts was taken anyway, so anybody can fill the disk or tie the app up processing something enormous. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads.
V5.2.2Level 1StackVet can confirm or fail it

An uploaded file's extension is one the app expects, and its contents really are that type (checking its first bytes, for example); at level 1, at least files used for business or security decisions.

Verify that when the application accepts a file, either on its own or within an archive such as a zip file, it checks if the file extension matches an expected file extension and validates that the contents correspond to the type represented by the extension. This includes, but is not limited to, checking the initial 'magic bytes', performing image re-writing, and using specialized libraries for file content validation. For L1, this can focus just on files which are used to make specific business or security decisions. For L2 and up, this must apply to all files being accepted.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.file-contents-unchecked. If it fails: A file is trusted on the strength of its name. Something that is not an image at all can be stored, and later served, as though it were one. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads.
V5.2.3Level 2StackVet can confirm or fail it

Before unpacking a compressed file (zip, gz, docx, odt), the app checks its unpacked size and number of files against set limits.

Verify that the application checks compressed files (e.g., zip, gz, docx, odt) against maximum allowed uncompressed size and against maximum number of files before uncompressing the file.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.archive-unchecked. If it fails: A small compressed file can unpack to a great deal. An app that unpacks one without counting can have its disk or memory filled by anybody who can upload. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 1 rule. Its rules look for: compressed data unpacked with no limit on its uncompressed size (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so the file-handling requirements do not apply.”
V5.2.4Level 3The owner answers

Each user has a limit on the total size and the number of files they can upload, so one user cannot fill up the storage.

Verify that a file size quota and maximum number of files per user are enforced to ensure that a single user cannot fill up the storage with too many files, or excessively large files.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Is there a limit on how many files each person can upload, and on how much space their files may take altogether, so one person cannot fill up the app's storage?
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so the file-handling requirements do not apply.”
V5.2.5Level 3No check yet

Uploaded compressed files (zip and the like) that contain symlinks, links to other files, are refused, unless the app truly needs them, and then only links to an allowlist of files are accepted.

Verify that the application does not allow uploading compressed files containing symlinks unless this is specifically required (in which case it will be necessary to enforce an allowlist of the files that can be symlinked to).

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so the file-handling requirements do not apply.”
V5.2.6Level 3No check yet

Uploaded images larger than the maximum allowed pixel size are refused, so a huge image cannot exhaust the server (pixel flood).

Verify that the application rejects uploaded images with a pixel size larger than the maximum allowed, to prevent pixel flood attacks.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so the file-handling requirements do not apply.”

V5.3 File Storage

V5.3.1Level 1StackVet can confirm or fail it

Files that people upload into a public folder can never be run as code on the server when someone opens their address.

Verify that files uploaded or generated by untrusted input and stored in a public folder, are not executed as server-side program code when accessed directly with an HTTP request.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.uploaded-file-executed. If it fails: Code somebody uploaded runs on the server when the file is fetched. This is the whole app, and usually the machine: it is the most serious thing an upload can do wrong.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads.
V5.3.2Level 1StackVet can confirm or fail it

File paths are built from names the app makes or trusts, not names people send; if a user's file name must be used, it is strictly checked, so nobody can reach other files or servers.

Verify that when the application creates file paths for file operations, instead of user-submitted filenames, it uses internally generated or trusted data, or if user-submitted filenames or file metadata must be used, strict validation and sanitization must be applied. This is to protect against path traversal, local or remote file inclusion (LFI, RFI), and server-side request forgery (SSRF) attacks.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
9 checks speak to it
  • Reads the code: ast.file-path-from-value. Looks for: A file is opened at a path built from a value (only ever in part)
    Needs: nothing: plain sv check
  • Reads the code: ast.file-path-from-request. Looks for: A file is opened at a path built from a request's input (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.upload-path-traversal. If it fails: The app builds where it saves an upload from the name the uploader chose. A name starting ../ puts the file outside the upload folder, so whoever uploads can write files where the app keeps its own: over a page it serves, or a script it runs. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: gosec, 1 rule. Its rules look for: a file opened from a path built out of user-submitted input
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 4 rules. Its rules look for: a template file path for rendering built from user-submitted input; a template file path for rendering built from user-submitted input, in a way that can run code; file access: a file path for a file operation built from user-submitted input; path traversal: a file path built with Pathname from user-submitted input
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 21 rules. Its rules look for: a file path built from user-submitted data (path traversal)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a file path built from user-submitted data (path traversal)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a file path built from user-submitted data (path traversal)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a file path built from user-submitted data (path traversal)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has file uploads.
V5.3.3Level 3StackVet can confirm or fail it

When the server unpacks or processes uploaded files, it ignores any folder path the user supplied in them, so a file cannot be written outside where it belongs (zip slip).

Verify that server-side file processing, such as file decompression, ignores user-provided path information to prevent vulnerabilities such as zip slip.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools: semgrep, 1 rule. Its rules look for: archive extraction that trusts the paths inside the archive (zip slip)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: archive extraction that trusts the paths inside the archive (zip slip)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: archive extraction that trusts the paths inside the archive (zip slip)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so the file-handling requirements do not apply.”

V5.4 File Download

V5.4.1Level 2StackVet can confirm or fail it

File names people submit are validated or ignored, and the app sets the file name itself in the Content-Disposition header of the response.

Verify that the application validates or ignores user-submitted filenames, including in a JSON, JSONP, or URL parameter and specifies a filename in the Content-Disposition header field in the response.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.download-unnamed. If it fails: The browser names the file from the address instead, which is whatever the person who uploaded it chose, and a name somebody else chose is the start of most download tricks. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads.
V5.4.2Level 2StackVet can confirm or fail it

File names the app serves, in headers or email attachments, are encoded or sanitized (as RFC 6266 describes), so they cannot inject anything.

Verify that file names served (e.g., in HTTP response header fields or email attachments) are encoded or sanitized (e.g., following RFC 6266) to preserve document structure and prevent injection attacks.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.download-name-injected. If it fails: Whoever names the file writes part of the response header, and can change how the browser handles the download, or what it thinks the file is. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has file uploads.
V5.4.3Level 2A check helps; a person decides

Files from untrusted sources are scanned by an antivirus scanner, so known malicious files are not served.

Verify that files obtained from untrusted sources are scanned by antivirus scanners to prevent serving of known malicious content.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Signed in: probe.upload-not-scanned. If it fails: Nothing checks uploaded files for known malicious content, so a file carrying a known virus is kept and handed to whoever downloads it next. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Uploaded files are scanned for viruses. Find where a file someone uploads is stored before anyone downloads it, and check whether it is scanned by antivirus software on the way in: your host's upload service may offer this, or a scanner such as ClamAV can be added. Try uploading the harmless EICAR test file, which every antivirus scanner recognizes. If the app accepts it and serves it back, known malicious content would be served too.
When it applies
When the app has file uploads. Otherwise the report says: “This app does not accept file uploads, so the file-handling requirements do not apply.”

V6 Authentication

V6.1 Authentication Documentation

V6.1.1Level 1The owner answers

The documentation says how the app defends sign-in against password guessing and stolen-password lists (rate limiting and the like), how that is set up, and how it avoids locking real users out.

Verify that application documentation defines how controls such as rate limiting, anti-automation, and adaptive response, are used to defend against attacks such as credential stuffing and password brute force. The documentation must make clear how these controls are configured and prevent malicious account lockout.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
After how many wrong passwords in a row does the app slow down or lock the account, and for how long? And how does it stop somebody locking a real person out on purpose? (Say the numbers you want, even if the app does not do it yet.)
StackVet shows where to look in the code: locate.availability-brakes, locate.rate-limit-packages lists the places.
When it applies
When the app has sign-in.
V6.1.2Level 2The owner answers

A list of words specific to the app, such as the organization's and products' names, is documented, so they can be kept out of passwords.

Verify that a list of context-specific words is documented in order to prevent their use in passwords. The list could include permutations of organization names, product names, system identifiers, project codenames, department or role names, and similar.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Which words should nobody be allowed to use in a password here, because they are the first anyone would guess (the app's name, your organization's name, your products)?
StackVet shows where to look in the code: locate.password-checks lists the places.
When it applies
When the app has sign-in.
V6.1.3Level 2The owner answers

If there are several ways to sign in, the documentation lists them all, with the security controls and strength each must enforce consistently.

Verify that, if the application includes multiple authentication pathways, these are all documented together with the security controls and authentication strength which must be consistently enforced across them.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
What are all the ways someone can sign in (a password, a Google or Microsoft account, a code by email, a key for programs), and are they all protected as well as each other?
When it applies
When the app has sign-in.

V6.2 Password Security

V6.2.1Level 1StackVet can confirm or fail it

Passwords people choose are at least 8 characters long; at least 15 is strongly recommended.

Verify that user set passwords are at least 8 characters in length although a minimum of 15 characters is strongly recommended.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.short-password-accepted. If it fails: A password of seven characters can be tried exhaustively, and people will choose one if the app lets them. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.2Level 1StackVet can confirm or fail it

People can change their password.

Verify that users can change their password.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.password-change. If it fails: A password that cannot really be changed cannot be changed after it leaks: the old one keeps working.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.3Level 1StackVet can confirm or fail it

Changing a password asks for the current password as well as the new one.

Verify that password change functionality requires the user's current and new password.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.password-change-without-current. If it fails: Anybody who gets hold of a signed-in session for a moment, on a shared computer or through a stolen cookie, can change the password and keep the account. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.signup-replaces-account. If it fails: Signing up again with an address that already has an account gave that account the new password. Anybody who knows somebody's email address can take their account by signing up with it, without the old password or access to the email. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.4Level 1StackVet can confirm or fail it

A new or changed password is checked against at least the 3,000 most common passwords that fit the app's rules, and refused if it is one of them.

Verify that passwords submitted during account registration or password change are checked against an available set of, at least, the top 3000 passwords which match the application's password policy, e.g. minimum length.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.common-password-accepted. If it fails: The passwords everybody uses are the first ones anybody trying to get in will try. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.5Level 1StackVet can confirm or fail it

Passwords can contain any characters, with no rules demanding upper case, numbers, or symbols.

Verify that passwords of any composition can be used, without rules limiting the type of characters permitted. There must be no requirement for a minimum number of upper or lower case characters, numbers, or special characters.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.password-composition-rules. If it fails: Rules like "must contain a digit" push people towards predictable passwords such as Password1, and refuse long passphrases that are stronger. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.6Level 1StackVet can confirm or fail it

Password fields hide what is typed (type=password); the app may let people show it for a moment.

Verify that password input fields use type=password to mask the entry. Applications may allow the user to temporarily view the entire masked password, or the last typed character of the password.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.password-field-unmasked. If it fails: A password typed into an ordinary text field is shown on the screen for anybody nearby to read, and may be remembered by the browser as ordinary text. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.7Level 1StackVet can only show it missing

People can paste passwords and use the browser's or another password manager.

Verify that "paste" functionality, browser password helpers, and external password managers are permitted.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.password-paste-blocked. If it fails: Stopping people pasting a password stops them using a password manager, which pushes them towards short passwords they can type from memory. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.8Level 1StackVet can confirm or fail it

The password is checked exactly as typed, never cut short or changed to lower or upper case.

Verify that the application verifies the user's password exactly as received from the user, without any modifications such as truncation or case transformation.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.password-altered. If it fails: A password that still works when its capitals are changed, or when everything past a certain length is left off, is a much smaller thing to guess than the one the person chose. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.9Level 2StackVet can confirm or fail it

Passwords of at least 64 characters are allowed.

Verify that passwords of at least 64 characters are permitted.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.long-password-refused. If it fails: People who use a password manager or a long passphrase are told to choose something shorter, which is weaker.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.2.10Level 2StackVet can only show it missing

A password stays valid until it is found to be compromised or the user changes it; people are never made to change passwords on a schedule.

Verify that a user's password stays valid until it is discovered to be compromised or the user rotates it. The application must not require periodic credential rotation.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.password-expiry-enforced. Looks for: A setting makes passwords expire after a time (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
A password does not expire on a schedule. Look at what the app does with a password that has been in use a long time: whether it ever makes a person change it because a number of days has passed. A password should stay valid until it is found to be compromised or the person changes it; a forced change every 90 days, say, is what this asks the app not to do. Search the code and the settings for a password age, an expiry date, or a "must change" flag set by time. If there is none, write that down: it is the answer.
When it applies
When the app has sign-in.
V6.2.11Level 2StackVet can confirm or fail it

The documented list of words specific to the app is used to stop easy-to-guess passwords being created.

Verify that the documented list of context specific words is used to prevent easy to guess passwords being created.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.context-word-password-accepted. If it fails: A password built from the app's own name, or the organization's, is one of the first things somebody who knows where they are will try. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
The banned word list is actually used. Take a word from the list you wrote down — the app's name, your organization's name — and try to register an account using it as the password, or with it inside a longer password. It should be refused. Listing the words in stackvet.toml under [policy] as context-words lets sv report --run try the first one for you, through the app's own sign-up.
When it applies
When the app has sign-in.
V6.2.12Level 2A check helps; a person decides

Passwords chosen at registration or when changing a password are checked against a set of breached passwords.

Verify that passwords submitted during account registration or password changes are checked against a set of breached passwords.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Signed in: probe.breached-password-accepted. If it fails: A password other people have already used, and lost, is on the lists anybody trying to get in works through first — long after the top few thousand. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Passwords from known breaches are refused. Try to register with a password known to have been breached. Password123! and qwerty123456 will do; haveibeenpwned.com/Passwords lists more. The app should refuse it and say why, without telling the person anything about other accounts. sv report --run tries one such password through the app's own sign-up, but one refusal only supports this: it does not show the whole list is checked.
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”

V6.3 General Authentication Security

V6.3.1Level 1StackVet can confirm or fail it

The defenses against password guessing and stolen-password lists are in place, as the app's documentation says they are.

Verify that controls to prevent attacks such as credential stuffing and password brute force are implemented according to the application's security documentation.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.failed-sign-ins-unlimited. If it fails: Someone can try passwords as fast as the network allows, so a weak or leaked password is found in minutes rather than never. This is how most accounts are actually taken. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.3.2Level 1StackVet can only show it missing

There are no default accounts such as root, admin, or sa, or they are turned off.

Verify that default user accounts (e.g., "root", "admin", or "sa") are not present in the application or are disabled.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.default-account. If it fails: An account with a name and password everybody knows is an account anybody can sign in to. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.3.3Level 2The owner answers

Signing in to the application takes multi-factor authentication, or a combination of single-factor methods.

Verify that either a multi-factor authentication mechanism or a combination of single-factor authentication mechanisms, must be used in order to access the application. For L3, one of the factors must be a hardware-based authentication mechanism which provides compromise and impersonation resistance against phishing attacks while verifying the intent to authenticate by requiring a user-initiated action (such as a button press on a FIDO hardware key or a mobile phone). Relaxing any of the considerations in this requirement requires a fully documented rationale and a comprehensive set of mitigating controls.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Getting in needs more than a password. Sign in and note everything you were asked for. A password alone is a single factor. A code from an app or a security key is a second one. If there is only a password, that is the answer to this one; if you have decided a password alone is enough, ASVS asks for the reasoning to be written down.
StackVet shows where to look in the code: locate.second-factor-packages lists the places.
When it applies
When the app has sign-in.
Secure by Design controls that ask the same
SBD-AC-02
V6.3.4Level 2A check helps; a person decides

If there are several ways to sign in, none is undocumented, and each enforces the same security controls and strength.

Verify that, if the application includes multiple authentication pathways, there are no undocumented pathways and that security controls and authentication strength are enforced consistently.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Reads the code: config.sign-in-pathway-not-listed. Looks for: A way into the app the code shows (a sign-in route, a Passport strategy, an API key read by header) that the list of sign-in pathways in stackvet.toml does not name (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
There is no forgotten way in. List every way somebody can become signed in: the password form, any "sign in with" button, magic links by email, API keys, an admin back door, an old mobile app. Compare that with the list in your security notes. Anything not on the list is what this asks about, and each way in should be as strong as the others.
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”
V6.3.5Level 3No check yet

Users are notified of suspicious sign-in attempts, successful or not, such as from an unusual place or device, with only one of several factors, after a long absence, or a success after several failures.

Verify that users are notified of suspicious authentication attempts (successful or unsuccessful). This may include authentication attempts from an unusual location or client, partially successful authentication (only one of multiple factors), an authentication attempt after a long period of inactivity or a successful authentication after several unsuccessful attempts.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”
V6.3.6Level 3StackVet can only show it missing

Email is never used to authenticate, neither as the only factor nor as one of several (multi-factor).

Verify that email is not used as either a single-factor or multi-factor authentication mechanism.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: config.email-sign-in-package. Looks for: A package the app depends on whose purpose is signing people in with a link or a code sent by email (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.email-code-sign-in. Looks for: An email-code entry in stackvet.toml, the owner saying the app signs people in with a code or link it emails (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”
V6.3.7Level 3StackVet can confirm or fail it

Users are notified after their authentication details change, such as a credential reset or a new username or email address.

Verify that users are notified after updates to authentication details, such as credential resets or modification of the username or email address.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.password-change-notified. If it fails: Somebody who takes over an account and changes its password does so without the account holder being told, so they find out only when they cannot sign in. (only credits it, only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”
V6.3.8Level 3StackVet can only show it missing

Nobody can tell which accounts exist from failed sign-in attempts, whether from the error message, the response code, or how long the answer takes; registration and forgot-password pages are protected the same way.

Verify that valid users cannot be deduced from failed authentication challenges, such as by basing on error messages, HTTP response codes, or different response times. Registration and forgot password functionality must also have this protection.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
3 checks speak to it
  • Signed in: probe.reset-reveals-account. If it fails: Anybody can find out whether an email address has an account, which is where guessing passwords and targeted phishing begin. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.signin-reveals-account. If it fails: Anybody can find out whether an email address has an account by trying to sign in with it, which is where guessing passwords and targeted phishing begin. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.signup-reveals-account. If it fails: Anybody can find out whether an email address has an account by trying to sign up with it, which is where guessing passwords and targeted phishing begin. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”

V6.4 Authentication Factor Lifecycle and Recovery

V6.4.1Level 1StackVet can only show it missing

First passwords and activation codes the system makes are random, follow the password rules, expire soon or after first use, and cannot be kept as the long-term password.

Verify that system generated initial passwords or activation codes are securely randomly generated, follow the existing password policy, and expire after a short period of time or after they are initially used. These initial secrets must not be permitted to become the long term password.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Signed in: probe.activation-code-guessable. If it fails: An activation code that can be guessed lets anybody finish somebody else's sign-up, or activate an account made in another person's name. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.activation-link-reusable. If it fails: An activation link that signs its account in works for whoever finds it later — in a mailbox, a browser history, or a forwarded email — for as long as it keeps working. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.4.2Level 1StackVet can only show it missing

There are no password hints or secret questions.

Verify that password hints or knowledge-based authentication (so-called "secret questions") are not present.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.password-hints. If it fails: A password hint or a secret question is a second, weaker password: the answer to "your first pet" is often on a social media profile. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.4.3Level 2StackVet can only show it missing

Resetting a forgotten password is secure and never skips multi-factor authentication that is turned on.

Verify that a secure process for resetting a forgotten password is implemented, that does not bypass any enabled multi-factor authentication mechanisms.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
4 checks speak to it
  • Signed in: probe.reset-reusable. If it fails: A reset link that works more than once works for whoever finds it next — in a mailbox, a browser history, or a forwarded email — long after the owner used it. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.reset-keeps-old-password. If it fails: Somebody who resets a password because it leaked is still locked in with whoever has the old one. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.reset-code-guessable. If it fails: A reset code that can be guessed lets anybody who knows an email address take the account, without ever seeing the email. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.reset-code-in-answer. If it fails: The app hands back the password reset code to whoever asked for it, not only to the account's email. Anybody who knows an email address can ask for a reset, read the code from the answer, and set a new password: the account is theirs without ever seeing the email. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.4.4Level 2The owner answers

When someone loses a multi-factor authentication factor, their identity is checked again as thoroughly as when they first enrolled.

Verify that if a multi-factor authentication factor is lost, evidence of identity proofing is performed at the same level as during enrollment.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Losing a second factor does not become the easy way in. Only where people sign in with a second factor. Go through losing it as a person would: what does support ask for before restoring access? If the answer is less than what was asked when the account was set up, the recovery path is now the weakest way in.
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”
V6.4.5Level 3The owner answers

When a sign-in method expires, instructions to renew it are sent with enough time to act before it does, with automated reminders if needed.

Verify that renewal instructions for authentication mechanisms which expire are sent with enough time to be carried out before the old authentication mechanism expires, configuring automated reminders if necessary.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If a way of signing in to the app runs out after a while (a certificate, or a key that must be renewed), does the app remind people early enough that they can renew it before it stops working?
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”
V6.4.6Level 3The owner answers

An administrator can start a password reset for a user, but cannot change or choose the user's password, so no administrator knows it.

Verify that administrative users can initiate the password reset process for the user, but that this does not allow them to change or choose the user's password. This prevents a situation where they know the user's password.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When someone asks an administrator for help with a forgotten password, can the administrator send them a reset link without ever choosing or seeing the new password themselves?
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no accounts, passwords or login screens to protect.”

V6.5 General Multi-factor authentication requirements

V6.5.1Level 2StackVet can confirm or fail it

Lookup secrets, codes sent out of band, and time-based one-time passwords (TOTPs) work only once.

Verify that lookup secrets, out-of-band authentication requests or codes, and time-based one-time passwords (TOTPs) are only successfully usable once.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.totp-reused. If it fails: A code that works twice works for whoever sees it the first time: over a shoulder, in a screenshot, or captured on its way to the app. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.email-code-reusable. If it fails: A sign-in code or link that works more than once signs in whoever finds it next — in a mailbox, a browser history, or a forwarded email. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.5.2Level 2StackVet can only show it missing

Lookup secrets with less than 112 bits of entropy are stored hashed with an approved password hashing algorithm and a 32-bit random salt.

Verify that, when being stored in the application's backend, lookup secrets with less than 112 bits of entropy (19 random alphanumeric characters or 34 random digits) are hashed with an approved password storage hashing algorithm that incorporates a 32-bit random salt. A standard hash function can be used if the secret has 112 bits of entropy or more.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.backup-codes-stored-plain. Looks for: Backup codes are saved as they were made, without hashing (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
Backup sign-in codes are stored scrambled, not as written. If the app gives people backup or recovery codes to sign in with, ask your AI coding tool to show you how they are stored. Open the database (or have the tool show you a row) and look at a stored code. It should be a long scrambled value made by a password hashing function such as bcrypt or Argon2, never the code itself. Try signing in with a code the app gave you: it should still work, which shows the scrambled value is checked rather than compared as written.
StackVet shows where to look in the code: locate.backup-codes lists the places.
When it applies
When the app has sign-in.
V6.5.3Level 2StackVet can only show it missing

Lookup secrets, out-of-band codes, and time-based one-time password seeds come from a cryptographically secure random number generator (CSPRNG), so they cannot be predicted.

Verify that lookup secrets, out-of-band authentication code, and time-based one-time password seeds, are generated using a Cryptographically Secure Pseudorandom Number Generator (CSPRNG) to avoid predictable values.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.insecure-random-for-code. Looks for: A sign-in or reset code is made with a random number generator that can be predicted (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
Sign-in codes come from an unpredictable random source. Ask your AI coding tool to show you the line that makes each sign-in code, reset code, backup code, and two-factor secret. It should use the language's secure random source (secrets in Python, crypto.randomInt or crypto.randomBytes in JavaScript, SecureRandom in Java, crypto/rand in Go). random, Math.random, or a code made from the time or the user's id is the wrong answer. sv check finds the commonest wrong ones itself; this is for any it did not.
When it applies
When the app has sign-in.
V6.5.4Level 2StackVet can only show it missing

Lookup secrets and out-of-band authentication codes have at least 20 bits of entropy (6 random digits is usually enough).

Verify that lookup secrets and out-of-band authentication codes have a minimum of 20 bits of entropy (typically 4 random alphanumeric characters or 6 random digits is sufficient).

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.email-code-short. If it fails: A sign-in code short enough to guess lets anybody who knows an email address sign in as its owner without ever seeing the email. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.5.5Level 2StackVet can confirm or fail it

Out-of-band authentication codes expire within 10 minutes, and time-based one-time passwords (TOTP) within 30 seconds.

Verify that out-of-band authentication requests, codes, or tokens, as well as time-based one-time passwords (TOTPs) have a defined lifetime. Out of band requests must have a maximum lifetime of 10 minutes and for TOTP a maximum lifetime of 30 seconds.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.email-code-long-lived. If it fails: A sign-in code that keeps working long after it was sent gives whoever reads the email later — in a shared mailbox, a synced phone, or a forwarded message — as good a way in as the person who asked for it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.totp-old-code-accepted. If it fails: A code that still works minutes after it was shown gives anybody who saw it minutes to use it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V6.5.6Level 3The owner answers

Any authentication factor, physical devices included, can be revoked if it is stolen or lost.

Verify that any authentication factor (including physical devices) can be revoked in case of theft or other loss.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If someone loses their phone or a security key they use to sign in, can it be switched off so it no longer works, and a new one set up in its place?
When it applies
When the app has sign-in. Otherwise the report says: “Multi-factor authentication (a second step at sign-in, such as an authenticator app) only matters when people sign in; this app has no sign-in.”
V6.5.7Level 3The owner answers

Biometrics (a fingerprint or face) are used only as a second factor, together with something the user has or knows.

Verify that biometric authentication mechanisms are only used as secondary factors together with either something you have or something you know.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where the app lets people sign in with a fingerprint or their face, is that always together with something else (their own device, or a password), never on its own?
When it applies
When the app has sign-in. Otherwise the report says: “Multi-factor authentication (a second step at sign-in, such as an authenticator app) only matters when people sign in; this app has no sign-in.”
V6.5.8Level 3StackVet can only show it missing

Time-based one-time passwords (TOTP codes) are checked against a time source from a trusted service, never a time the client provides.

Verify that time-based one-time passwords (TOTPs) are checked based on a time source from a trusted service and not from an untrusted or client provided time.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.otp-time-from-request. Looks for: A one-time code is checked against a time the request sent (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has sign-in. Otherwise the report says: “Multi-factor authentication (a second step at sign-in, such as an authenticator app) only matters when people sign in; this app has no sign-in.”

V6.6 Out-of-Band authentication mechanisms

V6.6.1Level 2The owner answers

One-time passwords by phone or SMS are offered only to a phone number already validated, alongside a stronger method, with their risks explained to users.

Verify that authentication mechanisms using the Public Switched Telephone Network (PSTN) to deliver One-time Passwords (OTPs) via phone or SMS are offered only when the phone number has previously been validated, alternate stronger methods (such as Time based One-time Passwords) are also offered, and the service provides information on their security risks to users. For L3 applications, phone and SMS must not be available as options.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If the app texts or phones people a sign-in code, does it check the number is really theirs first, does it also offer a safer way (an authenticator app), and does it tell people why text messages are the weaker choice?
When it applies
When the app has out of band auth. Otherwise the report says: “This app never sends one-time codes by phone call or text message.”
V6.6.2Level 2StackVet can confirm or fail it

An out-of-band authentication code is bound to the sign-in that asked for it, and cannot be used for a previous or later one.

Verify that out-of-band authentication requests, codes, or tokens are bound to the original authentication request for which they were generated and are not usable for a previous or subsequent one.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.email-code-unbound. If it fails: A code that completes a sign-in other than the one it was sent for can be used by somebody who started their own sign-in and then got hold of the code — a phishing page that asks for it is enough. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has out of band or email code. Otherwise the report says: “This app does not send sign-in codes by phone, SMS, push notification, or email.”
V6.6.3Level 2StackVet can confirm or fail it

Out-of-band authentication codes are protected against brute force guessing by rate limiting.

Verify that a code based out-of-band authentication mechanism is protected against brute force attacks by using rate limiting. Consider also using a code with at least 64 bits of entropy.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.email-code-guessing-unlimited. If it fails: Codes can be tried until one works: at six digits, a million tries sign anybody in. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “This app has no sign-in, so there are no sign-in codes to protect from guessing.”
V6.6.4Level 3No check yet

Where push notifications are used for multi-factor sign-in, they are rate limited, so an attacker cannot flood the user until they tap yes (push bombing); number matching helps too.

Verify that, where push notifications are used for multi-factor authentication, rate limiting is used to prevent push bombing attacks. Number matching may also mitigate this risk.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has out of band auth. Otherwise the report says: “This app sends no push notification asking a person to approve signing in, so there are no such prompts to flood.”

V6.7 Cryptographic authentication mechanism

V6.7.1Level 3No check yet

The certificates used to verify cryptographic sign-in assertions are stored so they cannot be modified.

Verify that the certificates used to verify cryptographic authentication assertions are stored in a way protects them from modification.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has cryptographic authenticator. Otherwise the report says: “No passkey, security-key, or FIDO library is used, and the app asks for no client certificate, so the app checks no cryptographic sign-in itself; a sign-in service that offers passkeys checks them on its own side.” When the app has mtls. Otherwise the report says: “No passkey, security-key, or FIDO library is used, and the app asks for no client certificate, so the app checks no cryptographic sign-in itself; a sign-in service that offers passkeys checks them on its own side.”
V6.7.2Level 3No check yet

The challenge nonce, a one-time random value, is at least 64 bits long and unique, statistically or over the lifetime of the cryptographic device.

Verify that the challenge nonce is at least 64 bits in length, and statistically unique or unique over the lifetime of the cryptographic device.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has cryptographic authenticator. Otherwise the report says: “No passkey, security-key, or FIDO library is used, and the app asks for no client certificate, so the app checks no cryptographic sign-in itself; a sign-in service that offers passkeys checks them on its own side.” When the app has mtls. Otherwise the report says: “No passkey, security-key, or FIDO library is used, and the app asks for no client certificate, so the app checks no cryptographic sign-in itself; a sign-in service that offers passkeys checks them on its own side.”

V6.8 Authentication with an Identity Provider

V6.8.1Level 2The owner answers

With several identity providers (IdPs), a user's identity cannot be spoofed through another provider: users are told apart by the provider's ID and their ID there together.

Verify that, if the application supports multiple identity providers (IdPs), the user's identity cannot be spoofed via another supported identity provider (eg. by using the same user identifier). The standard mitigation would be for the application to register and identify the user using a combination of the IdP ID (serving as a namespace) and the user's ID in the IdP.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If people can sign in through more than one service (Google and Microsoft, say), does the app remember which service each person came from, so someone with the same name or email at another service cannot sign in as them?
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app uses its own accounts, not sign-in through an external identity provider.”
V6.8.2Level 2StackVet can confirm or fail it

The digital signatures on authentication assertions, such as JWTs or SAML assertions, are always validated, and any unsigned or wrongly signed one is rejected.

Verify that the presence and integrity of digital signatures on authentication assertions (for example on JWTs or SAML assertions) are always validated, rejecting any assertions that are unsigned or have invalid signatures.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-signature-not-checked. If it fails: Anybody can write an ID token saying they are whoever they like, and be signed in as that person. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app uses its own accounts, not sign-in through an external identity provider.”
V6.8.3Level 2The owner answers

Each SAML assertion is processed only once within its validity period, to prevent replay attacks.

Verify that SAML assertions are uniquely processed and used only once within the validity period to prevent replay attacks.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When someone signs in through SAML (common with company sign-in), does the app refuse the same sign-in message if it is sent to it a second time?
When it applies
When the app has SAML sign-in. Otherwise the report says: “No SAML library is used, so there are no SAML assertions to replay.”
V6.8.4Level 2The owner answers

When an outside identity provider (IdP) signs people in and a function needs a certain strength or recentness of authentication, the app checks it in what the IdP returns, or assumes the weakest.

Verify that, if an application uses a separate Identity Provider (IdP) and expects specific authentication strength, methods, or recentness for specific functions, the application verifies this using the information returned by the IdP. For example, if OIDC is used, this might be achieved by validating ID Token claims such as 'acr', 'amr', and 'auth_time' (if present). If the IdP does not provide this information, the application must have a documented fallback approach that assumes that the minimum strength authentication mechanism was used (for example, single-factor authentication using username and password).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When people sign in through another service (Google, Microsoft, and the like), does the app ever need to know how they signed in there, for example with a second factor or within the last few minutes? If so, does it check what that service said, and if the service says nothing, does it assume the weakest sign-in?
StackVet shows where to look in the code: locate.identity-claims lists the places.
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app uses its own accounts, not sign-in through an external identity provider.”

V7 Session Management

V7.1 Session Management Documentation

V7.1.1Level 2StackVet can only show it missing

The documentation sets the session inactivity timeout and the absolute maximum session lifetime, and justifies any difference from NIST SP 800-63B's re-authentication rules.

Verify that the user's session inactivity timeout and absolute maximum session lifetime are documented, are appropriate in combination with other controls, and that the documentation includes justification for any deviations from NIST SP 800-63B re-authentication requirements.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: config.session-timeout-differs-from-policy. Looks for: A session lifetime the code sets (SESSION_COOKIE_AGE, PERMANENT_SESSION_LIFETIME, an Express session's maxAge) longer than the one stackvet.toml's policy states (only shows it missing)
    Needs: nothing: plain sv check
A person
Written down in security-notes.md, which sv notes starts.
How long may someone be away before they have to sign in again, how long may anyone stay signed in at most, and why are those times right for this app?
StackVet shows where to look in the code: locate.session-lifetime lists the places.
When it applies
When the app has sign-in.
V7.1.2Level 2The owner answers

The documentation says how many sessions one account may have at once, and what happens when the maximum number is reached.

Verify that the documentation defines how many concurrent (parallel) sessions are allowed for one account as well as the intended behaviors and actions to be taken when the maximum number of active sessions is reached.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
How many devices may one person be signed in on at once, and what happens when they sign in on one more?
When it applies
When the app has sign-in.
V7.1.3Level 2The owner answers

Every system that creates or manages sessions in a federated setup, such as single sign-on (SSO), is documented, with how session lifetimes, termination, and re-authentication are coordinated.

Verify that all systems that create and manage user sessions as part of a federated identity management ecosystem (such as SSO systems) are documented along with controls to coordinate session lifetimes, termination, and any other conditions that require re-authentication.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
If people sign in through another system (single sign-on), which systems keep them signed in, and how do they agree on when someone is signed out?
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app is not part of a single sign-on (SSO) setup with other systems.”

V7.2 Fundamental Session Management Security

V7.2.1Level 1StackVet can confirm or fail it

Session tokens are checked on the server, the trusted side, every time.

Verify that the application performs all session token verification using a trusted, backend service.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.session-token-unverified. If it fails: A session value this check invented opened a private page, so the app is believing the cookie rather than checking it. Anybody can make one up.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app decides who is signed in, does the server check that against something it issued itself, rather than taking the browser's word for it?
When it applies
When the app has sign-in.
V7.2.2Level 1StackVet can confirm or fail it

Sessions use tokens made fresh for each session, never a fixed API key or secret.

Verify that the application uses either self-contained or reference tokens that are dynamically generated for session management, i.e. not using static API secrets and keys.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.session-token-static. If it fails: A session that is the same value at every sign-in, or the same for two people, is one fixed key: whoever sees it once (in a log, a shared computer, a browser extension) is signed in as that person for good, or as everybody. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.2.3Level 1StackVet can only show it missing

Session tokens that point to data on the server are unique and made by a secure random generator, with at least 128 bits of randomness.

Verify that if reference tokens are used to represent user sessions, they are unique and generated using a cryptographically secure pseudo-random number generator (CSPRNG) and possess at least 128 bits of entropy.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.session-id-weak. If it fails: A session id short enough, or repeated, can be guessed, and a guessed session id is a signed-in session. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.2.4Level 1StackVet can confirm or fail it

Signing in, or signing in again, gives a new session token and ends the old one.

Verify that the application generates a new session token on user authentication, including re-authentication, and terminates the current session token.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.session-not-renewed. If it fails: The session id a visitor had before signing in keeps working after, so somebody who planted that id in their browser is signed in as them too. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.

V7.3 Session Timeout

V7.3.1Level 2StackVet can confirm or fail it

An inactivity timeout makes people authenticate again, as the risk analysis and documented decisions set.

Verify that there is an inactivity timeout such that re-authentication is enforced according to risk analysis and documented security decisions.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.session-idle-timeout. If it fails: A session left open on a shared or stolen computer stays signed in long after its owner walked away. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Being away signs you out. Sign in, then leave the app alone for longer than the idle timeout you wrote down, without clicking anything. Come back and reload a private page. You should be asked to sign in again.
When it applies
When the app has sign-in.
V7.3.2Level 2StackVet can confirm or fail it

An absolute maximum session lifetime makes people authenticate again, as the risk analysis and documented decisions set.

Verify that there is an absolute maximum session lifetime such that re-authentication is enforced according to risk analysis and documented security decisions.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.session-lifetime. If it fails: A session kept busy — by its owner, or by whoever stole it — never has to sign in again. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
A session does not last forever. Sign in and keep using the app past the maximum lifetime you wrote down. Staying active must not keep it alive forever — at the limit you should be asked to sign in again even mid-use.
When it applies
When the app has sign-in.

V7.4 Session Termination

V7.4.1Level 1StackVet can confirm or fail it

Once a session ends (signing out, or it expires), it cannot be used again; the server forgets it, or self-contained tokens are refused after that point.

Verify that when session termination is triggered (such as logout or expiration), the application disallows any further use of the session. For reference tokens or stateful sessions, this means invalidating the session data at the application backend. Applications using self-contained tokens will need a solution such as maintaining a list of terminated tokens, disallowing tokens produced before a per-user date and time or rotating a per-user signing key.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.logout-keeps-session. If it fails: Signing out does not end the session: a copied cookie, or a shared computer, still has the account after the person has left. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.4.2Level 1StackVet can confirm or fail it

When an account is disabled or deleted, all of its active sessions end.

Verify that the application terminates all active sessions when a user account is disabled or deleted (such as an employee leaving the company).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.sessions-survive-deletion. If it fails: An account that has been deleted can still be used from any browser that was signed in to it, so deleting a compromised or departed person's account does not lock them out. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.4.3Level 2StackVet can confirm or fail it

After a password or other authentication factor is changed or removed, the user is offered the choice to end all their other active sessions.

Verify that the application gives the option to terminate all other active sessions after a successful change or removal of any authentication factor (including password change via reset or recovery and, if present, an MFA settings update).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.password-change-ends-sessions. If it fails: Somebody who already has a session, from a stolen cookie or a computer left signed in, keeps it after the account holder changes the password to lock them out. (only credits it, only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.4.4Level 2StackVet can confirm or fail it

Every page that requires sign-in has an easy, visible way to log out.

Verify that all pages that require authentication have easy and visible access to logout functionality.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.sign-out-control-hidden. If it fails: The sign-out control is in the page but a person cannot see it, so somebody who wants to sign out cannot, and a session left open on a shared machine is the next person's session. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.no-sign-out-link. If it fails: Somebody who cannot find how to sign out stays signed in, and a session left open on a shared machine is the next person's session.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.4.5Level 2StackVet can confirm or fail it

Administrators can end the active sessions of one user, or of all users.

Verify that application administrators are able to terminate active sessions for an individual user or for all users.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.admin-end-sessions-ignored. If it fails: An administrator who signs out an account that was taken over leaves the attacker signed in. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.

V7.5 Defenses Against Session Abuse

V7.5.1Level 2StackVet can confirm or fail it

Changing anything that affects authentication or account recovery, such as the email address, phone number, or multi-factor settings, requires full re-authentication.

Verify that the application requires full re-authentication before allowing modifications to sensitive account attributes which may affect authentication such as email address, phone number, MFA configuration, or other information used in account recovery.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Signed in: probe.email-change-without-password. If it fails: Anybody who gets hold of a signed-in session for a moment can move the account to an email address of their own, then reset the password through it and keep the account.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.phone-change-without-password. If it fails: Anybody who gets hold of a signed-in session for a moment can put a phone number of their own on the account, and then receive what the app sends to it, sign-in and reset codes among them.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.two-factor-change-without-password. If it fails: Anybody who gets hold of a signed-in session for a moment can send the account's two-factor codes somewhere of their own, so the second factor no longer keeps them out.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.recovery-change-without-password. If it fails: Anybody who gets hold of a signed-in session for a moment can make the account recoverable through an address of their own, then reset the password through it and keep the account.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.5.2Level 2StackVet can confirm or fail it

Users can see their active sessions and, after authenticating again, end any or all of them.

Verify that users are able to view and (having authenticated again with at least one factor) terminate any or all currently active sessions.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.sessions-ended-without-password. If it fails: Somebody using a session left open can sign the owner out of every other device, and the owner cannot cut them off in turn without the password being asked first. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.other-sessions-not-ended. If it fails: A person who ends their other sessions, after losing a phone or signing in somewhere public, is still signed in there. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in.
V7.5.3Level 3No check yet

Before a highly sensitive transaction or operation, the app asks the user to authenticate again with at least one factor, or verifies them some other way.

Verify that the application requires further authentication with at least one factor or secondary verification before performing highly sensitive transactions or operations.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has sign-in. Otherwise the report says: “Sessions keep track of who is signed in; this app has no sign-in, so there are no sessions.”

V7.6 Federated Re-authentication

V7.6.1Level 2The owner answers

Sessions between the app and an identity provider (IdP) last and end as documented, requiring re-authentication when needed.

Verify that session lifetime and termination between Relying Parties (RPs) and Identity Providers (IdPs) behave as documented, requiring re-authentication as necessary such as when the maximum time between IdP authentication events is reached.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Signing out of the sign-in service, or its time running out, is felt here too. Sign in to the app through the outside service it uses, such as Google or Microsoft. Then, in another tab, sign out of that service, or wait past the longest time you wrote down that a sign-in there lasts, and reload a private page of the app. It should ask you to sign in again, or behave exactly as you wrote down it would. Staying signed in here for as long as you like, whatever happens at the service, is the wrong answer. A run cannot wait out a real service's time, which is why this is checked by hand.
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through an external identity provider, so there is no federated re-authentication.”
V7.6.2Level 2StackVet can confirm or fail it

A new application session is created only with the user's consent or an explicit action, never silently.

Verify that creation of a session requires either the user's consent or an explicit action, preventing the creation of new application sessions without user interaction.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-sign-in-from-another-session. If it fails: Somebody can finish their own sign-in in another person's browser, and that person is then using the attacker's account without knowing — typing into it, uploading to it, saving card details to it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through an external identity provider, so there is no federated re-authentication.”

V8 Authorization

V8.1 Authorization Documentation

V8.1.1Level 1The owner answers

The documentation sets out who may use which functions, and who may see or change which records.

Verify that authorization documentation defines rules for restricting function-level and data-specific access based on consumer permissions and resource attributes.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Who may do what in the app: which kinds of people may use which features, and whose records may each one see or change?
StackVet shows where to look in the code: locate.authorization-checks, locate.owner-checks, locate.refusals lists the places.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-AC-03
V8.1.2Level 2The owner answers

The authorization documentation sets rules for which fields of a record each user may read and write, by their permissions and the record's attributes.

Verify that authorization documentation defines rules for field-level access restrictions (both read and write) based on consumer permissions and resource attributes. Note that these rules might depend on other attribute values of the relevant data object, such as state or status.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Where some parts of a record are more private than the rest: who may see each part, who may change it, and does that change once the record is, say, published?
StackVet shows where to look in the code: locate.field-lists lists the places.
When it applies
To every app held to its level.
V8.1.3Level 3The owner answers

The app's documentation names the environmental and contextual attributes it uses to make security decisions, such as time of day, the user's location, IP address, or device, including for authentication and authorization.

Verify that the application's documentation defines the environmental and contextual attributes (including but not limited to, time of day, user location, IP address, or device) that are used in the application to make security decisions, including those pertaining to authentication and authorization.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Does the app ever decide something about safety from the time of day, where someone is, the internet address they come from, or the device they use, and if so, which of those does it look at, and for what?
When it applies
To every app held to its level.
V8.1.4Level 3The owner answers

The authentication and authorization documentation says how environmental and contextual factors are used in its decisions: which attributes are evaluated, the risk thresholds, and what happens (allow, challenge, deny, or step-up authentication).

Verify that authentication and authorization documentation defines how environmental and contextual factors are used in decision-making, in addition to function-level, data-specific, and field-level authorization. This should include the attributes evaluated, thresholds for risk, and actions taken (e.g., allow, challenge, deny, step-up authentication).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
When the app judges a sign-in or a request riskier than usual, what makes it riskier, how risky is too risky, and what happens then: let it through, ask again, refuse, or ask for a second proof of who they are?
When it applies
To every app held to its level.

V8.2 General Authorization Design

V8.2.1Level 1StackVet can confirm or fail it

Each function can be used only by people who have been given permission for it.

Verify that the application ensures that function-level access is restricted to consumers with explicit permissions.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
6 checks speak to it
  • Reads the code: config.firebase-rules-open. Looks for: A Firebase rules file that lets anybody in: an allow with no condition, if true, or test mode's date alone, or a Realtime Database .read or .write set to true (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.supabase-table-without-rls. Looks for: A table a Supabase migration creates with no row-level security turned on, open to the key every visitor's browser holds (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.supabase-policy-allows-all. Looks for: A Supabase policy that lets rows be added, changed, or deleted on the condition true (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.private-page-anonymous. If it fails: Anybody can open a page meant only for people who have signed in, without signing in.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.admin-page-ordinary-user. If it fails: An ordinary account can open a page meant only for administrators, so anyone who signs up can do what an administrator does there.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.admin-action-ordinary-user. If it fails: An ordinary account can do something only an administrator should be able to do, by sending the request itself. Hiding the button does not stop that.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-AC-03
V8.2.2Level 1StackVet can confirm or fail it

Each record can be reached only by people who have been given permission for that record, so nobody can open someone else's by changing an id in the address.

Verify that the application ensures that data-specific access is restricted to consumers with explicit permissions to specific data items to mitigate insecure direct object reference (IDOR) and broken object level authorization (BOLA).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
5 checks speak to it
  • Reads the code: config.firebase-rules-open. Looks for: A Firebase rules file that lets anybody in: an allow with no condition, if true, or test mode's date alone, or a Realtime Database .read or .write set to true (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.supabase-table-without-rls. Looks for: A table a Supabase migration creates with no row-level security turned on, open to the key every visitor's browser holds (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.supabase-policy-allows-all. Looks for: A Supabase policy that lets rows be added, changed, or deleted on the condition true (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.owner-field-trusted. If it fails: Anybody signed in can put a record into somebody else's account by adding one field to the request that creates it: a note, a message, or an order the other person never wrote shows as theirs. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.other-users-data. If it fails: Changing a number in the address is enough to read what another person saved, which is how most data leaks from web apps happen. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “Ownership checks (only the person who created a record can open it) need sign-in; this app has no sign-in.”
V8.2.3Level 2StackVet can only show it missing

Access to individual fields is restricted to users with explicit permission for those fields (broken object property level authorization, BOPLA).

Verify that the application ensures that field-level access is restricted to consumers with explicit permissions to specific fields to mitigate broken object property level authorization (BOPLA).

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
4 checks speak to it
  • Signed in: probe.role-field-trusted. If it fails: Anybody who signs up can make themselves an administrator by adding one field to the sign-up form, which takes a browser's developer tools and no skill. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.email-change-role-trusted. If it fails: Anybody with an account can make themselves an administrator by adding one field to the request that changes their email address, which takes a browser's developer tools and no skill. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.owner-field-trusted. If it fails: Anybody signed in can put a record into somebody else's account by adding one field to the request that creates it: a note, a message, or an order the other person never wrote shows as theirs. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.record-returns-secret-fields. If it fails: A record handed back to the browser carries fields nobody outside the server should ever see. Whatever is in them has already left. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where some parts of a record are more private than the rest, does the app check who may see and who may change each of those parts, every time?
When it applies
To every app held to its level.
V8.2.4Level 3The owner answers

Adaptive security controls, which weigh the time of day, location, IP address, or device, are applied to authentication and authorization as the documentation defines, both when a session starts and during it.

Verify that adaptive security controls based on a consumer's environmental and contextual attributes (such as time of day, location, IP address, or device) are implemented for authentication and authorization decisions, as defined in the application's documentation. These controls must be applied when the consumer tries to start a new session and also during an existing session.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If the app's notes say it treats a sign-in differently by time, place, address, or device, does the code really do that, both when someone signs in and later while they are still signed in?
When it applies
To every app held to its level.

V8.3 Operation Level Authorization

V8.3.1Level 1A check helps; a person decides

Who may do what is enforced on the server, never by things a user could change, such as hidden buttons or JavaScript in the browser.

Verify that the application enforces authorization rules at a trusted service layer and doesn't rely on controls that an untrusted consumer could manipulate, such as client-side JavaScript.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
4 checks speak to it
  • Signed in: probe.admin-page-ordinary-user. If it fails: An ordinary account can open a page meant only for administrators, so anyone who signs up can do what an administrator does there.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.admin-action-ordinary-user. If it fails: An ordinary account can do something only an administrator should be able to do, by sending the request itself. Hiding the button does not stop that.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.role-field-trusted. If it fails: Anybody who signs up can make themselves an administrator by adding one field to the sign-up form, which takes a browser's developer tools and no skill. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.email-change-role-trusted. If it fails: Anybody with an account can make themselves an administrator by adding one field to the request that changes their email address, which takes a browser's developer tools and no skill. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When somebody tries to open a page or do something they are not allowed to, is it the server that stops them, or only a button that is hidden?
StackVet shows where to look in the code: locate.authorization-checks, locate.owner-checks, locate.refusals lists the places.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-AC-04
V8.3.2Level 3No check yet

A change to what someone is allowed to do takes effect immediately; where it cannot (such as with self-contained tokens), the app alerts when they act without authorization and reverts the change.

Verify that changes to values on which authorization decisions are made are applied immediately. Where changes cannot be applied immediately, (such as when relying on data in self-contained tokens), there must be mitigating controls to alert when a consumer performs an action when they are no longer authorized to do so and revert the change. Note that this alternative would not mitigate information leakage.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.
V8.3.3Level 3The owner answers

Access to an object is decided by the permissions of the person who asked, not those of a service acting for them: a second service uses the consumer's own token, not a machine-to-machine token from the first.

Verify that access to an object is based on the originating subject's (e.g. consumer's) permissions, not on the permissions of any intermediary or service acting on their behalf. For example, if a consumer calls a web service using a self-contained token for authentication, and the service then requests data from a different service, the second service will use the consumer's token, rather than a machine-to-machine token from the first service, to make permission decisions.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When one part of the app, another program, or an AI asks for a record on someone's behalf, does the part holding the record check what that person may see, and not just trust the one asking?
When it applies
When the app has multiple services. Otherwise the report says: “This app runs as one service, offers no API keys to other programs, and its AI cannot act, so no service or program asks for a record on a person's behalf.” When the app has public api. Otherwise the report says: “This app runs as one service, offers no API keys to other programs, and its AI cannot act, so no service or program asks for a record on a person's behalf.” When the app has AI that takes actions. Otherwise the report says: “This app runs as one service, offers no API keys to other programs, and its AI cannot act, so no service or program asks for a record on a person's behalf.”

V8.4 Other Authorization Considerations

V8.4.1Level 2The owner answers

In an app shared by several customer organizations (tenants), cross-tenant controls ensure nothing a user does can affect a tenant they have no permission for.

Verify that multi-tenant applications use cross-tenant controls to ensure consumer operations will never affect tenants with which they do not have permissions to interact.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
One customer's account cannot touch another customer's data. This applies when the app keeps separate organizations, teams, or customers apart (tenants). Make two test accounts in two different organizations. Sign in as the first, open something that belongs to it, and write down the address and any id in it. Sign in as the second and try that address, then try changing, deleting, or inviting someone through it. Each should be refused. Do the same with an export or a search, which often skip the check.
When it applies
When the app has several customers' data side by side. Otherwise the report says: “This app serves one organization. It does not host several separate customer organizations that must be kept apart from each other.”
V8.4.2Level 3StackVet can only show it missing

Administrative interfaces have several layers of security, including continuous checks of who the user is, of their device's security, and of the risk in context; being on a trusted network is never enough on its own.

Verify that access to administrative interfaces incorporates multiple layers of security, including continuous consumer identity verification, device security posture assessment, and contextual risk analysis, ensuring that network location or trusted endpoints are not the sole factors for authorization even though they may reduce the likelihood of unauthorized access.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.admin-opened-by-address. If it fails: Anyone on the internet can add those headers, so the admin pages are open to anyone who thinks to. Where the request came from is the only thing guarding them. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.

V9 Self-contained Tokens

V9.1 Token source and integrity

V9.1.1Level 1StackVet can confirm or fail it

A self-contained token, such as a JWT, has its signature checked before anything in it is trusted.

Verify that self-contained tokens are validated using their digital signature or MAC to protect against tampering before accepting the token's contents.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
5 checks speak to it
  • Reads the code: ast.token-signature-not-checked. Looks for: A token is accepted without checking its signature (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.app-token-signature-not-checked. If it fails: The app's own sign-in token, with something added to what it says and the signature left as it was, opened a private page. The app is reading the token without checking its signature, so anybody can write one that says they are somebody else. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.app-token-placeholder-key. If it fails: The app signs its sign-in tokens with a secret anybody can guess, one of the placeholders that tutorials, library examples, and generated starter code use. With it, anybody can make a token that says they are any user, an administrator included, and the app will take it as its own. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 8 rules. Its rules look for: a self-contained token (JWT) accepted without validating its signature
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a self-contained token (JWT) accepted without validating its signature
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”
V9.1.2Level 1StackVet can confirm or fail it

Self-contained tokens can be made and checked only with algorithms on an allowlist, never the 'none' algorithm.

Verify that only algorithms on an allowlist can be used to create and verify self-contained tokens, for a given context. The allowlist must include the permitted algorithms, ideally only either symmetric or asymmetric algorithms, and must not include the 'None' algorithm. If both symmetric and asymmetric must be supported, additional controls will be needed to prevent key confusion.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Reads the code: ast.token-none-algorithm. Looks for: A token check accepts tokens with no signature at all (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.app-token-alg-none. If it fails: The app's own sign-in token, marked as needing no signature (alg: none) and sent with none, opened a private page. Anybody can write such a token. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 7 rules. Its rules look for: a self-contained token (JWT) accepted with an algorithm outside an allowlist, such as none
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”
V9.1.3Level 1StackVet can only show it missing

The keys used to check self-contained tokens come only from trusted sources set up in advance, never from a source named inside the token.

Verify that key material that is used to validate self-contained tokens is from trusted pre-configured sources for the token issuer, preventing attackers from specifying untrusted sources and keys. For JWTs and other JWS structures, headers such as 'jku', 'x5u', and 'jwk' must be validated against an allowlist of trusted sources.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.token-key-source-from-token. Looks for: A sign-in token is allowed to say where the key that checks it comes from (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.app-token-key-source-followed. If it fails: Sent its own sign-in token with a header saying where the key that checks it is to be fetched from (jku or x5u), the app went to that address. The token chose where its own key comes from: anybody can make a key, sign a token as anybody with it, and point the token at it. The app also fetches whatever address a token names, on its own network included. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”

V9.2 Token content

V9.2.1Level 1StackVet can confirm or fail it

A token is accepted only within its validity period; for a JWT, its nbf and exp times are checked.

Verify that, if a validity time span is present in the token data, the token and its content are accepted only if the verification time is within this validity time span. For example, for JWTs, the claims 'nbf' and 'exp' must be verified.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.app-token-expired-accepted. If it fails: The app's own sign-in token still opened a private page more than a minute after the time written in it as its expiry (exp). A token copied or stolen once keeps working after it should have run out. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: semgrep, 1 rule. Its rules look for: a token accepted without its validity time span (exp) being verified (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”
V9.2.2Level 2StackVet can confirm or fail it

A service accepts a token only after checking it is the right type for the purpose: access tokens for authorization, ID Tokens to prove who signed in.

Verify that the service receiving a token validates the token to be the correct type and is meant for the intended purpose before accepting the token's contents. For example, only access tokens can be accepted for authorization decisions and only ID Tokens can be used for proving user authentication.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-id-token-taken-as-access-token. If it fails: An ID token opens the app where an access token should be needed. An ID token only tells an app who signed in, and is often kept in the browser where scripts and logs can reach it, so whoever gets hold of one can use the app as that person. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”
V9.2.3Level 2StackVet can only show it missing

A service accepts only tokens meant for it (the audience); for JWTs, the 'aud' claim is checked against an allowlist.

Verify that the service only accepts tokens which are intended for use with that service (audience). For JWTs, this can be achieved by validating the 'aud' claim against an allowlist defined in the service.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.token-audience-not-checked. Looks for: A token check is told not to check who the token is for (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”
V9.2.4Level 2The owner answers

If a token issuer signs tokens for several audiences with one key, each token names its intended audience, so it cannot be reused for another.

Verify that, if a token issuer uses the same private key for issuing tokens to different audiences, the issued tokens contain an audience restriction that uniquely identifies the intended audiences. This will prevent a token from being reused with an unintended audience. If the audience identifier is dynamically provisioned, the token issuer must validate these audiences in order to make sure that they do not result in audience impersonation.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Each token names the service it is for, when one key signs for several. Find out whether the key that signs this app's tokens (a JWT secret or private key, or the sign-in service's own key) also signs tokens for any other app or service. If it does, check that every token it signs carries an aud field naming the one service it is meant for, and that each service refuses a token whose aud names another. If the key signs for this app alone, write that down: the requirement then asks nothing more.
When it applies
When the app has tokens it signs (JWT). Otherwise the report says: “This app does not issue self-contained tokens such as JWTs.”

V10 OAuth and OIDC

V10.1 Generic OAuth and OIDC Security

V10.1.1Level 2StackVet can only show it missing

Tokens are sent only to the components that strictly need them; in a backend-for-frontend design, access and refresh tokens stay in the backend.

Verify that tokens are only sent to components that strictly need them. For example, when using a backend-for-frontend pattern for browser-based JavaScript applications, access and refresh tokens shall only be accessible for the backend.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.token-in-browser-storage. Looks for: A sign-in token is written where the page's scripts can read it (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.token-in-browser-storage. If it fails: A sign-in token kept where the page's scripts can read it is taken by the first cross-site scripting bug or rogue package on the page, and whoever has it is signed in as the person. A refresh token keeps them signed in for weeks. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Are the app's access tokens kept only by the parts of the app that need them, rather than handed to the browser when the server could keep them?
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.1.2Level 2StackVet can confirm or fail it

The OAuth client accepts values from the authorization server only from a flow the same browser session started, bound by secrets like PKCE's code_verifier, state, or nonce that cannot be guessed.

Verify that the client only accepts values from the authorization server (such as the authorization code or ID Token) if these values result from an authorization flow that was initiated by the same user agent session and transaction. This requires that client-generated secrets, such as the proof key for code exchange (PKCE) 'code_verifier', 'state' or OIDC 'nonce', are not guessable, are specific to the transaction, and are securely bound to both the client and the user agent session in which the transaction was started.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-sign-in-from-another-session. If it fails: Somebody can finish their own sign-in in another person's browser, and that person is then using the attacker's account without knowing — typing into it, uploading to it, saving card details to it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”

V10.2 OAuth Client

V10.2.1Level 2StackVet can confirm or fail it

In the code flow, the OAuth client is protected against cross-site request forgery (CSRF) by PKCE or by checking the state parameter.

Verify that, if the code flow is used, the OAuth client has protection against browser-based request forgery attacks, commonly known as cross-site request forgery (CSRF), which trigger token requests, either by using proof key for code exchange (PKCE) functionality or checking the 'state' parameter that was sent in the authorization request.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-sign-in-from-another-session. If it fails: Somebody can finish their own sign-in in another person's browser, and that person is then using the attacker's account without knowing — typing into it, uploading to it, saving card details to it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.2.2Level 2StackVet can confirm or fail it

An OAuth client that works with more than one authorization server defends against mix-up attacks, for example by validating the 'iss' parameter in responses.

Verify that, if the OAuth client can interact with more than one authorization server, it has a defense against mix-up attacks. For example, it could require that the authorization server return the 'iss' parameter value and validate it in the authorization response and the token response.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-issuer-not-checked. If it fails: An app that signs in through more than one provider can be tricked into sending a sign-in meant for one to another (a mix-up attack), when it does not check which provider the answer came from. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.2.3Level 3The owner answers

The OAuth client asks the authorization server only for the scopes (or other authorization parameters) it requires.

Verify that the OAuth client only requests the required scopes (or other authorization parameters) in requests to the authorization server.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app sends people to sign in through another service, does it ask that service only for what it really uses (an email address, say), and not for more access than it needs?
StackVet shows where to look in the code: locate.oauth-scopes lists the places.
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”

V10.3 OAuth Resource Server

V10.3.1Level 2StackVet can confirm or fail it

The resource server accepts only access tokens meant for it (the audience), from the token's 'aud' claim or the introspection endpoint.

Verify that the resource server only accepts access tokens that are intended for use with that service (audience). The audience may be included in a structured access token (such as the 'aud' claim in JWT), or it can be checked using the token introspection endpoint.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-access-token-audience-not-checked. If it fails: An access token the sign-in provider issued for any other service opens the app: whoever runs that service, or anyone who gets one of its tokens, can use the app as the person the token names. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.3.2Level 2StackVet can confirm or fail it

The resource server makes its authorization decisions from the access token's delegated claims, such as 'sub', 'scope', and 'authorization_details', when they are present.

Verify that the resource server enforces authorization decisions based on claims from the access token that define delegated authorization. If claims such as 'sub', 'scope', and 'authorization_details' are present, they must be part of the decision.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-access-token-scope-not-checked. If it fails: An access token that was not granted the scope a route needs is taken there anyway, so a client the person allowed only to read, say, can also do what the route does, and the scopes the person agreed to limit nothing. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.3.3Level 2StackVet can confirm or fail it

When the resource server must identify one user from an access token, it uses claims that cannot be reassigned to another user, usually 'iss' and 'sub' together.

Verify that if an access control decision requires identifying a unique user from an access token (JWT or related token introspection response), the resource server identifies the user from claims that cannot be reassigned to other users. Typically, it means using a combination of 'iss' and 'sub' claims.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-access-token-user-keyed-on-email. If it fails: A different person who has the same email address at the sign-in provider gets the first person's data through the app's API: an address can be given to someone else, or chosen by whoever signs up first. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.3.4Level 2The owner answers

If the resource server needs a certain strength, method, or recentness of authentication, it checks the access token meets it, for example with the 'acr', 'amr', and 'auth_time' claims.

Verify that, if the resource server requires specific authentication strength, methods, or recentness, it verifies that the presented access token satisfies these constraints. For example, if present, using the OIDC 'acr', 'amr' and 'auth_time' claims respectively.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
For an action that should need a recent sign-in, or a second step such as a code, does the app check the sign-in token says that really happened, rather than accepting any valid token?
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.3.5Level 3The owner answers

The resource server refuses stolen or replayed access tokens by requiring sender-constrained tokens, tied to the one client allowed to use them, with Mutual TLS or DPoP.

Verify that the resource server prevents the use of stolen access tokens or replay of access tokens (from unauthorized parties) by requiring sender-constrained access tokens, either Mutual TLS for OAuth 2 or OAuth 2 Demonstration of Proof of Possession (DPoP).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If someone copied an access token the app accepts, could they use it from their own computer? Or does the app's API insist each token is used only by the program it was given to?
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”

V10.4 OAuth Authorization Server

V10.4.1Level 1StackVet can confirm or fail it

The authorization server accepts only redirect addresses registered in advance for each client, compared exactly.

Verify that the authorization server validates redirect URIs based on a client-specific allowlist of pre-registered URIs using exact string comparison.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oauth-redirect-not-exact. If it fails: Whoever owns the address the server accepted can have a person's sign-in code, and with it their account in the app that asked, sent to them by a link that starts at the real sign-in page. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.2Level 1StackVet can confirm or fail it

An authorization code can be used only once; a second use is refused, and the tokens issued from it are revoked.

Verify that, if the authorization server returns the authorization code in the authorization response, it can be used only once for a token request. For the second valid request with an authorization code that has already been used to issue an access token, the authorization server must reject a token request and revoke any issued tokens related to the authorization code.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oauth-code-reused. If it fails: A sign-in code that leaks after use, from a log, a browser's history, or a referrer, still gets tokens for the person it was issued to. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.3Level 1StackVet can confirm or fail it

Authorization codes expire quickly: within 10 minutes at levels 1 and 2.

Verify that the authorization code is short-lived. The maximum lifetime can be up to 10 minutes for L1 and L2 applications and up to 1 minute for L3 applications.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Reads the code: config.authorization-code-long-lived. Looks for: django-oauth-toolkit's AUTHORIZATION_CODE_EXPIRE_SECONDS or node-oidc-provider's ttl.AuthorizationCode (60 seconds when left at the default) at a minute or less, which meets every level; a setting, not the server's behavior (only ever in part)
    Needs: nothing: plain sv check
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.4Level 1StackVet can only show it missing

Each client may use only the grant types it needs, and never the implicit ('token') or the 'password' grant.

Verify that for a given client, the authorization server only allows the usage of grants that this client needs to use. Note that the grants 'token' (Implicit flow) and 'password' (Resource Owner Password Credentials flow) must no longer be used.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: config.retired-grant-enabled. Looks for: The app's sign-in server switches on a grant that must no longer be used (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.retired-grants-offered. If it fails: An app using the password grant sees every user's password, and a token sent the implicit way can be read by anything that sees the address. Both are why V10.4.4 says they must no longer be used. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.5Level 1StackVet can confirm or fail it

Refresh tokens for public clients cannot be replayed: they are tied to the client, or rotated so a used one is refused and its family revoked.

Verify that the authorization server mitigates refresh token replay attacks for public clients, preferably using sender-constrained refresh tokens, i.e., Demonstrating Proof of Possession (DPoP) or Certificate-Bound Access Tokens using mutual TLS (mTLS). For L1 and L2 applications, refresh token rotation may be used. If refresh token rotation is used, the authorization server must invalidate the refresh token after usage, and revoke all refresh tokens for that authorization if an already used and invalidated refresh token is provided.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oauth-refresh-token-replayed. If it fails: A refresh token copied from a person's phone or browser keeps giving whoever has it new access tokens for that person, for as long as the refresh token lives, even after the real app has used it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.6Level 2StackVet can confirm or fail it

With the code grant, the authorization server requires proof key for code exchange (PKCE): a valid code_challenge, never the 'plain' method, and a checked code_verifier.

Verify that, if the code grant is used, the authorization server mitigates authorization code interception attacks by requiring proof key for code exchange (PKCE). For authorization requests, the authorization server must require a valid 'code_challenge' value and must not accept a 'code_challenge_method' value of 'plain'. For a token request, it must require validation of the 'code_verifier' parameter.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.authorization-server-plain-pkce. Looks for: The authorization server's own published details listing plain among the PKCE methods it accepts (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Signed in: probe.oauth-pkce-not-required. If it fails: A sign-in code caught on its way back to the app, by another app on the person's phone or from a log, can be exchanged for tokens by whoever caught it, since nothing ties the code to the client that asked for it. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.7Level 2The owner answers

If clients may register themselves without authentication, the authorization server validates their metadata, gets the user's consent, and warns before an untrusted client is authorized.

Verify that if the authorization server supports unauthenticated dynamic client registration, it mitigates the risk of malicious client applications. It must validate client metadata such as any registered URIs, ensure the user's consent, and warn the user before processing an authorization request with an untrusted client application.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If any program can sign itself up as a client of the app's sign-in server without asking first, does the server check what it says about itself, and warn people before they approve one it does not know?
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.8Level 2StackVet can confirm or fail it

Refresh tokens have an absolute expiration, even when their expiration slides forward with use.

Verify that refresh tokens have an absolute expiration, including if sliding refresh token expiration is applied.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Reads the code: config.refresh-token-never-expires. Looks for: django-oauth-toolkit's REFRESH_TOKEN_EXPIRE_SECONDS set, with rotation off, or node-oidc-provider's default rotation, which stops once a refresh token has lived a year; a setting, not the server's behavior (only ever in part)
    Needs: nothing: plain sv check
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.9Level 2The owner answers

An authorized user can revoke refresh tokens and reference access tokens in the authorization server's interface, against malicious clients or stolen tokens.

Verify that refresh tokens and reference access tokens can be revoked by an authorized user using the authorization server user interface, to mitigate the risk of malicious clients or stolen tokens.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Can a signed-in person, on the sign-in server's own pages, see what is still signed in on their behalf and switch it off, so a stolen token stops working?
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.10Level 2StackVet can confirm or fail it

A confidential client is authenticated for its back-channel requests to the authorization server, such as token, pushed authorization (PAR), and revocation requests.

Verify that confidential client is authenticated for client-to-authorized server backchannel requests such as token requests, pushed authorization requests (PAR), and token revocation requests.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oauth-client-not-authenticated. If it fails: Whoever has a sign-in code meant for the app, from a log or a browser's history, can exchange it for tokens without the app's secret, so the secret protects nothing. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.11Level 2The owner answers

The authorization server assigns each OAuth client only the scopes it requires.

Verify that the authorization server configuration only assigns the required scopes to the OAuth client.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Each OAuth client is given only the scopes it needs. Open the authorization server's settings and list each OAuth client it knows, with the scopes the configuration assigns to it. Compare each list with what that client actually uses; a scope a client is allowed and never asks for is one to take away.
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.12Level 3StackVet can confirm or fail it

For each client, the authorization server allows only the response_mode value that client needs, for example by checking it against expected values, or by using PAR or JAR.

Verify that for a given client, the authorization server only allows the 'response_mode' value that this client needs to use. For example, by having the authorization server validate this value against the expected values or by using pushed authorization request (PAR) or JWT-secured Authorization Request (JAR).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oauth-response-mode-not-held. If it fails: A sign-in link can choose how the code comes back, and a way the app was never built for (a fragment a page's scripts can read, or a form posted from another page) can hand the code to something other than the app. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.13Level 3StackVet can confirm or fail it

The authorization code grant ('code') is always used with pushed authorization requests (PAR), where the client sends the request's details to the server directly first.

Verify that grant type 'code' is always used together with pushed authorization requests (PAR).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oauth-code-without-par. If it fails: An authorization request is read from the sign-in link itself, where anyone who makes the link can change what it asks for, rather than from what the client sent the server directly and authenticated. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.14Level 3The owner answers

The authorization server issues only sender-constrained access tokens, bound to the client by a mutual TLS certificate or by DPoP (Proof of Possession), so a stolen token is useless to anyone else.

Verify that the authorization server issues only sender-constrained (Proof-of-Possession) access tokens, either with certificate-bound access tokens using mutual TLS (mTLS) or DPoP-bound access tokens (Demonstration of Proof of Possession).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Does the app's own sign-in server only ever hand out tokens tied to the program that asked for them, so a token on its own is useless to anyone else?
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.15Level 3The owner answers

For a client running on a server, the authorization server makes sure the authorization_details value came from the client's backend and the user has not tampered with it, for example by requiring PAR or JAR.

Verify that, for a server-side client (which is not executed on the end-user device), the authorization server ensures that the 'authorization_details' parameter value is from the client backend and that the user has not tampered with it. For example, by requiring the usage of pushed authorization request (PAR) or JWT-secured Authorization Request (JAR).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When a program on a server asks the app's sign-in server for permission to do specific things, is that request sent straight from server to server (or signed), so the person in the browser cannot change what is asked for on the way?
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”
V10.4.16Level 3StackVet can confirm or fail it

The client is confidential, and the authorization server requires strong client authentication based on public-key cryptography that resists replay attacks, such as mutual TLS or private_key_jwt.

Verify that the client is confidential and the authorization server requires the use of strong client authentication methods (based on public-key cryptography and resistant to replay attacks), such as mutual TLS ('tls_client_auth', 'self_signed_tls_client_auth') or private key JWT ('private_key_jwt').

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.authorization-server-weak-client-auth. Looks for: The authorization server's own published details (/.well-known/oauth-authorization-server, /.well-known/openid-configuration) listing only key-based client authentication (private_key_jwt, mutual TLS) for the token address; what it says it accepts, not what each client is set to (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has authorization server. Otherwise the report says: “This app does not run an OAuth authorization server: the service that signs people in and issues tokens on behalf of other applications. These rules are for whoever runs one. Signing in through somebody else's, such as Google or Microsoft, does not make this app one.”

V10.5 OIDC Client

V10.5.1Level 2StackVet can confirm or fail it

The client prevents ID Token replay, for example by checking the token's 'nonce' claim matches the nonce it sent in the authentication request.

Verify that the client (as the relying party) mitigates ID Token replay attacks. For example, by ensuring that the 'nonce' claim in the ID Token matches the 'nonce' value sent in the authentication request to the OpenID Provider (in OAuth2 refereed to as the authorization request sent to the authorization server).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-nonce-not-checked. If it fails: An ID token captured from one sign-in can be played back to sign in again. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.5.2Level 2StackVet can confirm or fail it

The client identifies the user from ID Token claims that cannot be reassigned to another user, usually 'sub'.

Verify that the client uniquely identifies the user from ID Token claims, usually the 'sub' claim, which cannot be reassigned to other users (for the scope of an identity provider).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Reads the code: ast.account-found-by-provider-email. Looks for: An account is found, or a sign-in recorded, by the email address the sign-in provider sent (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.oidc-user-keyed-on-email. If it fails: The app decides who someone is by their email address at the sign-in provider rather than by the provider's permanent id for them. An email address can pass from one person to another (a reused work address, a provider that lets people choose it), and whoever holds it next is signed in to the first person's account. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.5.3Level 2StackVet can confirm or fail it

The client rejects authorization server metadata whose issuer URL does not exactly match the one it expects, so a malicious server cannot impersonate another.

Verify that the client rejects attempts by a malicious authorization server to impersonate another authorization server through authorization server metadata. The client must reject authorization server metadata if the issuer URL in the authorization server metadata does not exactly match the pre-configured issuer URL expected by the client.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-metadata-issuer-not-checked. If it fails: The app trusts the sign-in provider's published details even when they say they come from a different provider. Whoever can serve those details, from a look-alike address or by changing them on the way, can pass their own server off as the provider the app trusts. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.5.4Level 2StackVet can confirm or fail it

The client checks an ID Token is meant for it: the token's 'aud' claim must equal the client's own client_id.

Verify that the client validates that the ID Token is intended to be used for that client (audience) by checking that the 'aud' claim from the token is equal to the 'client_id' value for the client.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-audience-not-checked. If it fails: An ID token issued to any other app that uses the same provider signs its holder in here — including an app an attacker wrote to collect them. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”
V10.5.5Level 2StackVet can confirm or fail it

With OIDC back-channel logout, the client checks a logout token is typed 'logout+jwt', has the right 'event' claim, and has no 'nonce', so forced logout and token confusion are prevented.

Verify that, when using OIDC back-channel logout, the relying party mitigates denial of service through forced logout and cross-JWT confusion in the logout flow. The client must verify that the logout token is correctly typed with a value of 'logout+jwt', contains the 'event' claim with the correct member name, and does not contain a 'nonce' claim. Note that it is also recommended to have a short expiration (e.g., 2 minutes).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-logout-token-not-checked. If it fails: A token that is not a proper logout token ends a person's session, so another kind of token from the same provider (an ID token, say) can be posted to the logout address to sign people out at will. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in through another provider. Otherwise the report says: “This app does not sign people in through another provider (OAuth or OpenID Connect), such as Google or Microsoft.”

V10.6 OpenID Provider

V10.6.1Level 2StackVet can confirm or fail it

The OpenID Provider allows only 'code', 'ciba', 'id_token', or 'id_token code' as the response mode, and never 'token' (the implicit flow).

Verify that the OpenID Provider only allows values 'code', 'ciba', 'id_token', or 'id_token code' for response mode. Note that 'code' is preferred over 'id_token code' (the OIDC Hybrid flow), and 'token' (any Implicit flow) must not be used.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.authorization-server-implicit-flow. Looks for: The OpenID provider's own published details listing only code, id_token, and code id_token as response types, no implicit flow; what it says it offers, not what it does when asked for another (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has authorization server. Otherwise the report says: “This app is not an OpenID provider: the service other applications send people to so they can sign in. These rules are for whoever runs one, and this app is not it.”
V10.6.2Level 2StackVet can confirm or fail it

The OpenID Provider prevents forced logout by getting the user's explicit confirmation, or by validating the logout request's parameters such as 'id_token_hint'.

Verify that the OpenID Provider mitigates denial of service through forced logout. By obtaining explicit confirmation from the end-user or, if present, validating parameters in the logout request (initiated by the relying party), such as the 'id_token_hint'.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.oidc-logout-without-hint. If it fails: Any page a person visits can sign them out of every app that signs in through this one, again and again, by sending their browser to the sign-out address. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has authorization server. Otherwise the report says: “This app is not an OpenID provider: the service other applications send people to so they can sign in. These rules are for whoever runs one, and this app is not it.”

V10.7 Consent Management

V10.7.1Level 2The owner answers

The authorization server makes sure the user consents to each authorization request, always asking explicitly when the client's identity cannot be assured.

Verify that the authorization server ensures that the user consents to each authorization request. If the identity of the client cannot be assured, the authorization server must always explicitly prompt the user for consent.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
People are asked to consent to each authorization request. Sign in to a client app as a test user, and start a sign-in through the authorization server. Check a consent screen appears before access is granted. Then try it with a client the server cannot be sure of (one that registered itself, or has no secret): it must ask every time, not remember an earlier yes.
When it applies
When the app has authorization server. Otherwise the report says: “Asking a person to approve what an application may see and do is the authorization server's job, and this app does not run one. Where this app signs in through somebody else's provider, that approval happens on the provider's own pages.”
V10.7.2Level 2The owner answers

When the authorization server asks for consent, it says clearly what is being consented to: what is authorized, to which application, and for how long.

Verify that when the authorization server prompts for user consent, it presents sufficient and clear information about what is being consented to. When applicable, this should include the nature of the requested authorizations (typically based on scope, resource server, Rich Authorization Requests (RAR) authorization details), the identity of the authorized application, and the lifetime of these authorizations.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
The consent screen says clearly what is being agreed to. Start a sign-in from a client app as a test user, and look at the consent screen. Check it names the application asking, what it will be able to see or do (each scope, in words), and for how long. A screen that only says "allow" with the app's name fails.
When it applies
When the app has authorization server. Otherwise the report says: “Asking a person to approve what an application may see and do is the authorization server's job, and this app does not run one. Where this app signs in through somebody else's provider, that approval happens on the provider's own pages.”
V10.7.3Level 2The owner answers

Users can review, change, and revoke the consents they gave through the authorization server.

Verify that the user can review, modify, and revoke consents which the user has granted through the authorization server.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
People can review, change, and revoke what they consented to. Sign in to the authorization server as a test user who has allowed a client app. Look for the page that lists the apps you allowed. Check you can see each one, change what it may do, and remove it; then check the removed app is asked for consent again.
When it applies
When the app has authorization server. Otherwise the report says: “Asking a person to approve what an application may see and do is the authorization server's job, and this app does not run one. Where this app signs in through somebody else's provider, that approval happens on the provider's own pages.”

V11 Cryptography

V11.1 Cryptographic Inventory and Documentation

V11.1.1Level 2The owner answers

A documented policy manages cryptographic keys through their whole lifecycle, following a standard such as NIST SP 800-57, and keys are not shared more widely than needed.

Verify that there is a documented policy for management of cryptographic keys and a cryptographic key lifecycle that follows a key management standard such as NIST SP 800-57. This should include ensuring that keys are not overshared (for example, with more than two entities for shared secrets and more than one entity for private keys).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
For each secret key the app uses: where is it kept, who can get to it, how often is it replaced, and what happens if it may have leaked?
When it applies
To every app held to its level.
V11.1.2Level 2The owner answers

An up-to-date cryptographic inventory lists every key, algorithm, and certificate the application uses, where each may be used, and what data each may protect.

Verify that a cryptographic inventory is performed, maintained, regularly updated, and includes all cryptographic keys, algorithms, and certificates used by the application. It must also document where keys can and cannot be used in the system, and the types of data that can and cannot be protected using the keys.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
What is every key, kind of encryption, and certificate the app uses, and what may each one be used for?
When it applies
To every app held to its level.
V11.1.3Level 3The owner answers

Cryptographic discovery is used to find every place cryptography is used in the system: encryption, hashing, and signing operations.

Verify that cryptographic discovery mechanisms are employed to identify all instances of cryptography in the system, including encryption, hashing, and signing operations.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Does anyone run a tool that finds every place the system scrambles, signs, or fingerprints data (in the app's code, the packages it uses, and its servers), so none is missed when something has to be replaced?
When it applies
To every app held to its level.
V11.1.4Level 3The owner answers

A cryptographic inventory, a list of all the cryptography in use, is maintained, with a documented plan for migrating to new standards such as post-quantum cryptography.

Verify that a cryptographic inventory is maintained. This must include a documented plan that outlines the migration path to new cryptographic standards, such as post-quantum cryptography, in order to react to future threats.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
If the ways the app scrambles and signs data had to be swapped for newer ones (as quantum computers may one day require), is there a written plan for what would change, in what order, and who decides?
When it applies
To every app held to its level.

V11.2 Secure Cryptography Implementation

V11.2.1Level 2StackVet can only show it missing

Cryptographic operations use industry-validated implementations, such as well-known libraries or hardware, never home-made ones.

Verify that industry-validated implementations (including libraries and hardware-accelerated implementations) are used for cryptographic operations.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.hand-rolled-cryptography. Looks for: A function named as encrypting does it by hand with XOR (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
Cryptography comes from a well-known library. Look at every place the app encrypts, decrypts, signs, hashes, or makes a key, and check that each one calls a well-known, industry-validated library (such as the language's own crypto module, OpenSSL, libsodium, or the cryptography package) rather than code the app or its AI coding tool wrote itself. A function named encrypt that shuffles or XORs bytes by hand is the thing to look for. Write down the library each place uses.
When it applies
To every app held to its level.
V11.2.2Level 2The owner answers

The application is built so its cryptographic algorithms, key lengths, and modes can be swapped or upgraded at any time, and keys and passwords replaced and data re-encrypted (crypto agility).

Verify that the application is designed with crypto agility such that random number, authenticated encryption, MAC, or hashing algorithms, key lengths, rounds, ciphers and modes can be reconfigured, upgraded, or swapped at any time, to protect against cryptographic breaks. Similarly, it must also be possible to replace keys and passwords and re-encrypt data. This will allow for seamless upgrades to post-quantum cryptography (PQC), once high-assurance implementations of approved PQC schemes or standards are widely available.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If one of the ways the app encrypts or scrambles data had to be swapped for a newer one, could that be done without rewriting the app?
StackVet shows where to look in the code: locate.algorithm-names lists the places.
When it applies
To every app held to its level.
V11.2.3Level 2StackVet can confirm or fail it

Every cryptographic primitive gives at least 128 bits of security, for example a 256-bit ECC key or a 3072-bit RSA key.

Verify that all cryptographic primitives utilize a minimum of 128-bits of security based on the algorithm, key size, and configuration. For example, a 256-bit ECC key provides roughly 128 bits of security where RSA requires a 3072-bit key to achieve 128 bits of security.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Outside tools: brakeman, 1 rule. Its rules look for: an RSA key size too small for 128 bits of security
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 10 rules. Its rules look for: a key size below 128 bits of security, such as a small RSA or DSA key
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a key size below 128 bits of security, such as a small RSA or DSA key
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a key size below 128 bits of security, such as a small RSA or DSA key
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V11.2.4Level 3StackVet can only show it missing

Every cryptographic operation takes the same time whatever the data (constant-time), with no short-circuit comparisons, calculations, or returns that could leak information through timing.

Verify that all cryptographic operations are constant-time, with no 'short-circuit' operations in comparisons, calculations, or returns, to avoid leaking information.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.digest-compared-with-equals. Looks for: A signature is compared in a way that leaks how much of it was right (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.
V11.2.5Level 3StackVet can only show it missing

Cryptographic modules fail securely, and their errors are handled so they cannot be used against the app, as in a Padding Oracle attack.

Verify that all cryptographic modules fail securely, and errors are handled in a way that does not enable vulnerabilities, such as Padding Oracle attacks.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.check-passes-on-error. Looks for: A check answers "yes" when it fails (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.

V11.3 Encryption Algorithms

V11.3.1Level 1StackVet can confirm or fail it

Insecure encryption modes such as ECB, and weak padding such as PKCS#1 v1.5, are not used.

Verify that insecure block modes (e.g., ECB) and weak padding schemes (e.g., PKCS#1 v1.5) are not used.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Reads the code: ast.weak-cipher. Looks for: A cipher or block mode that is not approved is used (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: brakeman, 1 rule. Its rules look for: RSA encryption with a weak padding scheme such as PKCS#1 v1.5
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 8 rules. Its rules look for: an insecure block mode such as ECB, or a weak padding scheme
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V11.3.2Level 1StackVet can confirm or fail it

Only approved ciphers and modes, such as AES with GCM, are used.

Verify that only approved ciphers and modes such as AES with GCM are used.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Reads the code: ast.weak-cipher. Looks for: A cipher or block mode that is not approved is used (only ever in part)
    Needs: nothing: plain sv check
  • Outside tools: gosec, 2 rules. Its rules look for: the DES cipher package imported, which is not an approved cipher; the RC4 cipher package imported, which is not an approved cipher
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 17 rules. Its rules look for: a cipher or mode that is not approved, such as DES, RC4, or Blowfish
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V11.3.3Level 2StackVet can only show it missing

Encrypted data is protected against unauthorized changes, preferably with approved authenticated encryption, or with encryption plus an approved MAC.

Verify that encrypted data is protected against unauthorized modification preferably by using an approved authenticated encryption method or by combining an approved encryption method with an approved MAC algorithm.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.unauthenticated-encryption. Looks for: Data is encrypted in a way that does not show whether it was changed (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.
V11.3.4Level 3StackVet can only show it missing

Nonces, initialization vectors, and other single-use numbers are never used more than once for the same encryption key and data element, and are generated in the way the algorithm needs.

Verify that nonces, initialization vectors, and other single-use numbers are not used for more than one encryption key and data-element pair. The method of generation must be appropriate for the algorithm being used.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Outside tools: gosec, 1 rule. Its rules look for: an encryption IV or nonce fixed in the code, so it is reused (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 2 rules. Its rules look for: an AES-GCM encryption nonce fixed in the code, so it is reused for every message; an encryption IV fixed in the code, so it is reused for every message (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V11.3.5Level 3The owner answers

Wherever an encryption algorithm and a MAC algorithm, a tamper check, are combined, they work in encrypt-then-MAC mode: encrypt first, then compute the check over the result.

Verify that any combination of an encryption algorithm and a MAC algorithm is operating in encrypt-then-MAC mode.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where the app scrambles data and also adds a tamper-proof seal to it, is the seal made over the scrambled data, and checked before unscrambling, rather than the other way round?
StackVet shows where to look in the code: locate.hmac lists the places.
When it applies
To every app held to its level.

V11.4 Hashing and Hash-based Functions

V11.4.1Level 1StackVet can confirm or fail it

Only approved hash functions are used for cryptography; MD5 and the like are never used for any cryptographic purpose.

Verify that only approved hash functions are used for general cryptographic use cases, including digital signatures, HMAC, KDF, and random bit generation. Disallowed hash functions, such as MD5, must not be used for any cryptographic purpose.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.weak-hash-function. Looks for: A disallowed hash function is used (only ever in part)
    Needs: nothing: plain sv check
  • Outside tools: bandit, 2 rules. Its rules look for: an insecure hash function such as MD5 or SHA1; hashlib called with an insecure hash function such as MD5 or SHA1
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 3 rules. Its rules look for: an insecure hash function such as MD5 or SHA1; the MD5 hash package imported; the SHA1 hash package imported
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 2 rules. Its rules look for: a weak hash function such as MD5 or SHA-1 is used; a weak hash function such as MD5 or SHA-1 is used for an HMAC
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 19 rules. Its rules look for: a disallowed hash function such as MD5 or SHA1
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a disallowed hash function such as MD5 or SHA1
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: a disallowed hash function such as MD5 or SHA1
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V11.4.2Level 2StackVet can confirm or fail it

Passwords are stored with an approved, deliberately slow key derivation function (a password hashing function), with settings that follow current guidance to make brute-force attacks hard.

Verify that passwords are stored using an approved, computationally intensive, key derivation function (also known as a "password hashing function"), with parameter settings configured based on current guidance. The settings should balance security and performance to make brute-force attacks sufficiently challenging for the required level of security.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Reads the code: ast.weak-password-key-derivation. Looks for: A password is stored, or a key made from it, with too few rounds of work (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: semgrep, 7 rules. Its rules look for: passwords stored with a hash function that is not a slow key derivation function
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: passwords stored with a hash function that is not a slow key derivation function
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has sign-in. Otherwise the report says: “Password hashing only matters when there are passwords; this app has no sign-in.”
V11.4.3Level 2StackVet can confirm or fail it

Hash functions used for digital signatures and data integrity are collision resistant, with outputs of at least 256 bits where collision resistance is needed.

Verify that hash functions used in digital signatures, as part of data authentication or data integrity are collision resistant and have appropriate bit-lengths. If collision resistance is required, the output length must be at least 256 bits. If only resistance to second pre-image attacks is required, the output length must be at least 128 bits.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Outside tools: semgrep, 4 rules. Its rules look for: a hash function whose output length is too short to be collision resistant
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V11.4.4Level 2StackVet can only show it missing

Keys derived from passwords use an approved key derivation function with key stretching, set strongly enough that brute force cannot recover the key.

Verify that the application uses approved key derivation functions with key stretching parameters when deriving secret keys from passwords. The parameters in use must balance security and performance to prevent brute-force attacks from compromising the resulting cryptographic key.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.weak-password-key-derivation. Looks for: A password is stored, or a key made from it, with too few rounds of work (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has sign-in. Otherwise the report says: “Password hashing only matters when there are passwords; this app has no sign-in.”

V11.5 Random Values

V11.5.1Level 2StackVet can confirm or fail it

Every random number or string meant to be unguessable comes from a cryptographically secure random number generator (CSPRNG) and has at least 128 bits of entropy; a UUID does not count.

Verify that all random numbers and strings which are intended to be non-guessable must be generated using a cryptographically secure pseudo-random number generator (CSPRNG) and have at least 128 bits of entropy. Note that UUIDs do not respect this condition.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Reads the code: ast.insecure-random-for-code. Looks for: A sign-in or reset code is made with a random number generator that can be predicted (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: gosec, 1 rule. Its rules look for: a random number generator that is not cryptographically secure
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 5 rules. Its rules look for: random numbers that must not be guessable taken from a generator that is not cryptographically secure
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: random numbers that must not be guessable taken from a generator that is not cryptographically secure
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V11.5.2Level 3No check yet

The random number generator in use is designed to stay secure even under heavy demand.

Verify that the random number generation mechanism in use is designed to work securely, even under heavy demand.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.

V11.6 Public Key Cryptography

V11.6.1Level 2StackVet can only show it missing

Only approved cryptographic algorithms and modes are used to generate keys and to make and check digital signatures, and no generated key is weak to known attacks.

Verify that only approved cryptographic algorithms and modes of operation are used for key generation and seeding, and digital signature generation and verification. Key generation algorithms must not generate insecure keys vulnerable to known attacks, for example, RSA keys which are vulnerable to Fermat factorization.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.weak-key-generation. Looks for: A key the code makes with a method or a size no longer approved: an RSA key under 2048 bits, a DSA key, a key on a 192-bit curve, or an RSA public exponent of 3 (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
Keys and signatures are made with approved methods. Ask your AI coding tool to list every place the app makes a key, a signing key, or a signature, and which method each uses. Look for RSA keys of at least 2048 bits (3072 is better), elliptic-curve keys on P-256 or Ed25519, and signatures made with SHA-256 or stronger. MD5, SHA-1, DSA, RSA under 2048 bits, or a key the app writes by hand from random bytes are the wrong answer. If the app makes no keys and signs nothing itself, write that down.
When it applies
To every app held to its level.
V11.6.2Level 3StackVet can only show it missing

Key exchange (such as Diffie-Hellman) uses approved cryptographic algorithms with secure parameters, so nobody can step into the middle of setting up the connection's keys.

Verify that approved cryptographic algorithms are used for key exchange (such as Diffie-Hellman) with a focus on ensuring that key exchange mechanisms use secure parameters. This will prevent attacks on the key establishment process which could lead to adversary-in-the-middle attacks or cryptographic breaks.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.weak-key-exchange. Looks for: A key exchange the code sets up with parameters no longer safe: a Diffie-Hellman prime under 2048 bits, a small built-in group, or an elliptic curve under 192 bits (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.

V11.7 In-Use Data Cryptography

V11.7.1Level 3The owner answers

Full memory encryption is used, so sensitive data stays protected from unauthorized users or processes even while it is being used.

Verify that full memory encryption is in use that protects sensitive data while it is in use, preventing access by unauthorized users or processes.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Does the app run on computers whose memory is encrypted (often called confidential computing), so that even someone with access to the machine cannot read sensitive data while the app is working on it?
When it applies
To every app held to its level.
V11.7.2Level 3The owner answers

Only the minimal amount of data is exposed during processing (data minimization), and it is encrypted again immediately after use or as soon as feasible.

Verify that data minimization ensures the minimal amount of data is exposed during processing, and ensure that data is encrypted immediately after use or as soon as feasible.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app has to unlock sensitive data to work on it, does it unlock only the parts it needs, and lock them again as soon as it is done?
When it applies
To every app held to its level.

V12 Secure Communication

V12.1 General TLS Security Guidance

V12.1.1Level 1StackVet can confirm or fail it

Only the latest recommended TLS versions, such as 1.2 and 1.3, are turned on, with the newest preferred.

Verify that only the latest recommended versions of the TLS protocol are enabled, such as TLS 1.2 and TLS 1.3. The latest version of the TLS protocol must be the preferred option.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools: semgrep, 13 rules. Its rules look for: an outdated TLS or SSL protocol version enabled
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-python, 2 rules. Its rules look for: an outdated TLS or SSL protocol version enabled
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Your own live site: probe.old-tls-accepted. Looks for: The site still accepts TLS 1.0 or 1.1 (only shows it missing)
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no TLS connection to configure.”
V12.1.2Level 2StackVet can only show it missing

Only recommended TLS cipher suites are enabled, with the strongest preferred.

Verify that only recommended cipher suites are enabled, with the strongest cipher suites set as preferred. L3 applications must only support cipher suites which provide forward secrecy.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools: semgrep, 2 rules. Its rules look for: TLS cipher suites that are not recommended (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
A person
Checked by hand, and recorded with sv review.
The live site offers only strong encryption settings. sv does not check this: it takes dozens of connections to the live site, and sv probe keeps to four (the owner's decision, 6 October 2026). Run a scanner made for it against your live address, such as testssl.sh (testssl.sh https://your-address) or SSL Labs' free online test. The cipher list should show only ones rated strong or good, with forward secrecy, and no rating of weak, insecure, or vulnerable.
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no TLS connection to configure.”
V12.1.3Level 2StackVet can only show it missing

Before an mTLS client certificate's identity is used to authenticate or authorize, the application checks the certificate is trusted.

Verify that the application validates that mTLS client certificates are trusted before using the certificate identity for authentication or authorization.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.client-certificate-untrusted. Looks for: A client certificate is accepted without checking who issued it (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has mtls. Otherwise the report says: “The app asks for no client certificate, so there is no certificate identity to validate before it is used.”
V12.1.4Level 3StackVet can confirm or fail it

Certificate revocation checking, such as OCSP Stapling, is enabled and configured, so a certificate that has been withdrawn is not trusted.

Verify that proper certification revocation, such as Online Certificate Status Protocol (OCSP) Stapling, is enabled and configured.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Your own live site: probe.ocsp-not-stapled. Looks for: The site does not staple its certificate's revocation status
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no TLS connection to configure.”
V12.1.5Level 3StackVet can confirm or fail it

Encrypted Client Hello (ECH) is enabled in the TLS settings, so details such as the name of the site being visited (the SNI) are not exposed during the TLS handshake.

Verify that Encrypted Client Hello (ECH) is enabled in the application's TLS settings to prevent exposure of sensitive metadata, such as the Server Name Indication (SNI), during TLS handshake processes.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Your own live site: live.ech-not-offered. Looks for: The site does not offer Encrypted Client Hello
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no TLS connection to configure.”

V12.2 HTTPS Communication with External Facing Services

V12.2.1Level 1StackVet can confirm or fail it

All connections from clients to the app's public web services use TLS, and never fall back to unencrypted connections.

Verify that TLS is used for all connectivity between a client and external facing, HTTP-based services, and does not fall back to insecure or unencrypted communications.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Your own live site: probe.plain-http-served. Looks for: The site is served over plain HTTP (only ever in part)
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no public connection to encrypt.”
Secure by Design controls that ask the same
SBD-DM-02
V12.2.2Level 1A check helps; a person decides

The app's public services use TLS certificates that browsers trust.

Verify that external facing services use publicly trusted TLS certificates.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Your own live site: probe.certificate-not-trusted. Looks for: The certificate is not one browsers trust
    Needs: the address your app is served from, typed at the terminal (sv probe https://…)
A person
Checked by hand, and recorded with sv review.
The certificate on the live site is one browsers trust. Open the live site in a browser and click the padlock. It should show a certificate issued by a public authority, with a date that has not passed, and the name should match the address. A warning page, or a certificate the app generated for itself, means no visitor can tell your site from an impostor.
When it applies
When the app has its own TLS. Otherwise the report says: “This app runs on one computer only, without HTTPS, so there is no public connection to encrypt.”

V12.3 General Service to Service Communication Security

V12.3.1Level 2StackVet can confirm or fail it

Every connection to and from the application, including to databases, monitoring, administration, partner systems, and outside APIs, uses an encrypted protocol such as TLS, never falling back to an unencrypted one.

Verify that an encrypted protocol such as TLS is used for all inbound and outbound connections to and from the application, including monitoring systems, management tools, remote access and SSH, middleware, databases, mainframes, partner systems, or external APIs. The server must not fall back to insecure or unencrypted protocols.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Outside tools: semgrep, 54 rules. Its rules look for: a WebSocket connection over ws:// rather than WebSocket over TLS (WSS); a connection made without an encrypted protocol such as TLS
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, send email, or have AI features, so there is no connection between services to encrypt.” When the app has AI features. When the app has email.
Secure by Design controls that ask the same
SBD-DM-02, SBD-AC-01
V12.3.2Level 2StackVet can confirm or fail it

When the application connects to a TLS server, it validates the server's certificate first.

Verify that TLS clients validate certificates received before communicating with a TLS server.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
8 checks speak to it
  • Reads the code: config.certificate-checks-off. Looks for: A setting that switches off certificate checking for every connection the app makes (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: bandit, 1 rule. Its rules look for: a TLS request made without validating the server certificate
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 1 rule. Its rules look for: a TLS connection made without validating the server certificate
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 1 rule. Its rules look for: TLS certificate verification is turned off, so the TLS client does not validate certificates
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 14 rules. Its rules look for: TLS certificate validation turned off in a client
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: TLS certificate validation turned off in a client
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: TLS certificate validation turned off in a client
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: TLS certificate validation turned off in a client
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, send email, or have AI features, so there are no server certificates to check.” When the app has AI features. When the app has email.
V12.3.3Level 2StackVet can only show it missing

Connections between the application's own HTTP-based services use TLS or similar transport encryption, never falling back to unencrypted communication.

Verify that TLS or another appropriate transport encryption mechanism used for all connectivity between internal, HTTP-based services within the application, and does not fall back to insecure or unencrypted communications.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools: semgrep, 3 rules. Its rules look for: a gRPC client connection made without encryption; a gRPC connection in Node.js made without encryption; a gRPC server that accepts connections without encryption (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, send email, or have AI features, so there are no services talking to each other to secure.” When the app has AI features. When the app has email.
Secure by Design controls that ask the same
SBD-AC-01
V12.3.4Level 2StackVet can only show it missing

TLS between internal services uses trusted certificates; where internal or self-signed certificates are used, each service trusts only those specific ones.

Verify that TLS connections between internal services use trusted certificates. Where internally generated or self-signed certificates are used, the consuming service must be configured to only trust specific internal CAs and specific self-signed certificates.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: config.certificate-checks-off. Looks for: A setting that switches off certificate checking for every connection the app makes (only shows it missing)
    Needs: nothing: plain sv check
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, send email, or have AI features, so there are no service certificates to trust.” When the app has AI features. When the app has email.
Secure by Design controls that ask the same
SBD-AC-01
V12.3.5Level 3No check yet

Services inside the system authenticate each other strongly, with methods such as TLS client authentication built on public-key infrastructure and resistant to replay, so each endpoint is verified.

Verify that services communicating internally within a system (intra-service communications) use strong authentication to ensure that each endpoint is verified. Strong authentication methods, such as TLS client authentication, must be employed to ensure identity, using public-key infrastructure and mechanisms that are resistant to replay attacks. For microservice architectures, consider using a service mesh to simplify certificate management and enhance security.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has multiple services. Otherwise the report says: “This app runs as one service, so there is no traffic between its own services to authenticate.”
Secure by Design controls that ask the same
SBD-AC-01

V13 Configuration

V13.1 Configuration Documentation

V13.1.1Level 2StackVet can only show it missing

Every communication need of the application is documented, including the external services it relies on and any place a user could point it to connect to.

Verify that all communication needs for the application are documented. This must include external services which the application relies upon and cases where an end user might be able to provide an external location to which the application will then connect.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.undeclared-outside-service. If it fails: A page of the app reaches another site that the app's list of the services it talks to does not name, so that list is not the whole of what the app communicates with, and whatever the page sends there goes somewhere nobody wrote down. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Written down in security-notes.md, which sv notes starts.
What does the app connect to outside itself (payments, email, AI services, other programs), and why? And can anyone using the app give it an address that it will then visit itself?
StackVet shows where to look in the code: locate.outside-addresses lists the places.
When it applies
To every app held to its level.
V13.1.2Level 3The owner answers

The documentation says, for each service the app uses, the maximum number of concurrent connections (such as a connection pool limit) and what the app does when that limit is reached, including any fallback or recovery.

Verify that for each service the application uses, the documentation defines the maximum number of concurrent connections (e.g., connection pool limits) and how the application behaves when that limit is reached, including any fallback or recovery mechanisms, to prevent denial of service conditions.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
For each service the app connects to (its database, for one), how many connections can be open at once, and what does the app do when they are all in use: wait, give up, or fall back to something else?
When it applies
To every app held to its level.
V13.1.3Level 3The owner answers

The documentation sets out how the app manages resources for each outside system it uses (databases, file handles, threads, HTTP connections): releasing them, timeouts, failure handling, and retry limits, delays, and back-off.

Verify that the application documentation defines resource‑management strategies for every external system or service it uses (e.g., databases, file handles, threads, HTTP connections). This should include resource‑release procedures, timeout settings, failure handling, and where retry logic is implemented, specifying retry limits, delays, and back‑off algorithms. For synchronous HTTP request–response operations it should mandate short timeouts and either disable retries or strictly limit retries to prevent cascading delays and resource exhaustion.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
For each outside system the app uses, how long does the app wait before giving up, does it try again and how many times, and does it always let go of what it opened (a file, a connection) when it is done or something fails?
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-RR-06
V13.1.4Level 3The owner answers

The documentation names the secrets critical to the app's security and a schedule for rotating them, based on the organization's threat model and business needs.

Verify that the application's documentation defines the secrets that are critical for the security of the application and a schedule for rotating them, based on the organization's threat model and business requirements.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Which of the app's passwords and keys would do the most harm if someone else had them, and how often is each one replaced with a new one?
When it applies
To every app held to its level.

V13.2 Backend Communication Configuration

V13.2.1Level 2The owner answers

The application's backend components (APIs, middleware, data layers) authenticate to each other with individual service accounts, short-lived tokens, or certificates, never fixed passwords or shared API keys.

Verify that communications between backend application components that don't support the application's standard user session mechanism, including APIs, middleware, and data layers, are authenticated. Authentication must use individual service accounts, short-term tokens, or certificate-based authentication and not unchanging credentials such as passwords, API keys, or shared accounts with privileged access.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When parts of the app talk to each other (the app to its database, to a cache, to another of your services), does each one have to prove who it is, rather than being trusted because it can reach the address?
StackVet shows where to look in the code: locate.backend-connections lists the places.
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, so there are no separate backend components that need to authenticate to each other.”
V13.2.2Level 2StackVet can only show it missing

Backend components, operating system services, APIs, middleware, and data layers talk to each other with accounts that have the least privileges they need.

Verify that communications between backend application components, including local or operating system services, APIs, middleware, and data layers, are performed with accounts assigned the least necessary privileges.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.database-as-superuser. Looks for: The app connects to its database as the database's all-powerful account (only shows it missing)
    Needs: nothing: plain sv check
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Does each of those connections use an account allowed only what that part needs, rather than one powerful account used everywhere?
StackVet shows where to look in the code: locate.backend-connections lists the places.
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, so there are no separate backend components running under their own accounts.”
V13.2.3Level 2StackVet can only show it missing

When a credential is used for one service to authenticate to another, it is never a default credential such as admin/admin.

Verify that if a credential has to be used for service authentication, the credential being used by the consumer is not a default credential (e.g., root/root or admin/admin).

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: secrets.default-credential-address. Looks for: A service is reached with a stock default user name and password (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: secrets.default-credential-setting. Looks for: A database or broker is set up with a stock default password (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.
V13.2.4Level 2StackVet can only show it missing

An allowlist sets which outside resources and systems the application may communicate with, for requests, data loads, and file access.

Verify that an allowlist is used to define the external resources or systems with which the application is permitted to communicate (e.g., for outbound requests, data loads, or file access). This allowlist can be implemented at the application layer, web server, firewall, or a combination of different layers.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.fetch-address-from-request. Looks for: An outgoing request goes to an address taken from the incoming one (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.fetch-goes-anywhere. If it fails: The feature fetches whatever address it is given, including one on the app's own private network that nobody listed. Somebody can use it to make the server reach places only the server can reach: internal services, a cloud provider's metadata address that hands out the server's credentials, or the app's own admin pages. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, so there are no outbound connections to time out.” When the app has AI features. When the app has email.
V13.2.5Level 2The owner answers

The web or application server is configured with an allowlist of the resources and systems it may send requests to or load data and files from.

Verify that the web or application server is configured with an allowlist of resources or systems to which the server can send requests or load data or files from.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
The server can reach only the places you listed. sv does not check this: which places the server may send requests to, or load data or files from, is usually set where the app is hosted (a firewall rule, an outbound proxy, or the host's network settings), not in the app's code, and sv reads no host's settings. Write down every outside service the app calls, such as payments, email, an AI service, or file storage, and every place it loads data or files from. Then open your host's network or firewall settings and check that outgoing connections are allowed only to those and refused everywhere else. If nothing there limits them, write that down: it is the answer, and the requirement is not met yet.
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, so there is no outbound traffic to restrict.” When the app has AI features. When the app has email.
V13.2.6Level 3The owner answers

Where the app connects to separate services, it follows the documented configuration for each connection: maximum parallel connections, what happens at that limit, connection timeouts, and retry strategies.

Verify that where the application connects to separate services, it follows the documented configuration for each connection, such as maximum parallel connections, behavior when maximum allowed connections is reached, connection timeouts, and retry strategies.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Each connection follows the settings written for it. Put the security notes for V13.1.2 and V13.1.3 (connection limits, timeouts, and retries for each service) beside the app's connection settings: its database pool, and its timeout and retry settings for each outside call. Check each one matches what was written down.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-RR-06

V13.3 Secret Management

V13.3.1Level 2A check helps; a person decides

Backend secrets, such as passwords, keys, and API keys, are created, stored, accessed, and destroyed through a secrets management solution such as a key vault, never in the source code or build artifacts.

Verify that a secrets management solution, such as a key vault, is used to securely create, store, control access to, and destroy backend secrets. These could include passwords, key material, integrations with databases and third-party systems, keys and seeds for time-based tokens, other internal secrets, and API keys. Secrets must not be included in application source code or included in build artifacts. For an L3 application, this must involve a hardware-backed solution such as an HSM.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
32 checks speak to it
  • Reads the code: secrets.anthropic-key. Looks for: Anthropic API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.openai-key. Looks for: OpenAI API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.huggingface-token. Looks for: Hugging Face access token found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.aws-access-key. Looks for: AWS access key ID found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.github-token. Looks for: GitHub token found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.slack-token. Looks for: Slack token found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.stripe-key. Looks for: Live Stripe key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.stripe-test-key. Looks for: Stripe test key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.google-api-key. Looks for: Google API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.private-key-block. Looks for: Private key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.jwt. Looks for: JSON Web Token found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.sendgrid-key. Looks for: SendGrid API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.twilio-key. Looks for: Twilio API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.groq-key. Looks for: Groq API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.replicate-token. Looks for: Replicate API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.resend-key. Looks for: Resend API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.supabase-token. Looks for: Supabase access key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.openrouter-key. Looks for: OpenRouter API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.pinecone-key. Looks for: Pinecone API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.perplexity-key. Looks for: Perplexity API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.xai-key. Looks for: xAI API key found in a file
    Needs: nothing: plain sv check
  • Reads the code: secrets.default-credential-address. Looks for: A service is reached with a stock default user name and password (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: secrets.default-credential-setting. Looks for: A database or broker is set up with a stock default password (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.secrets-file-committed. If it fails: Deleting the file does not help: version control keeps its history, and every clone, fork and backup already has a copy. Treat every credential in it as known to anyone who has ever had access to the repository. (only ever in part)
    Needs: nothing: plain sv check
  • Reads the code: config.secret-under-public-name. Looks for: A server's key under a name the build hands to the browser (NEXT_PUBLIC_, VITE_, EXPO_PUBLIC_, REACT_APP_): a name that says it holds a secret, or a value shaped like a service-role, Stripe, OpenAI, Anthropic, Supabase secret, or GitHub key (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: config.gitignore-covers-env. Looks for: Nothing stops the environment file being committed (only ever in part)
    Needs: nothing: plain sv check
  • Reads the code: secrets.credential-assignment. Looks for: A value that looks like a credential, a secret or a password is written into the code (only shows it missing)
    Needs: nothing: plain sv check
  • Reads the code: secrets.password-in-url. Looks for: A password written into a web address's user part (postgresql://user:password@host), placeholders, references, and stock passwords set aside (only shows it missing)
    Needs: nothing: plain sv check
  • Outside tools: bandit, 3 rules. Its rules look for: a password or secret as a hard-coded default argument; a password or secret passed as a hard-coded function argument; a password or secret written into the source as a string
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 1 rule. Its rules look for: a credential or secret written into the source as a string
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: brakeman, 1 rule. Its rules look for: a secret such as a password or key is written into the application source code
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 59 rules. Its rules look for: a secret, key, or password written into the source rather than kept in a secrets management solution
    Needs: the tool installed; runs with sv report unless --no-tools
A person
Checked by hand, and recorded with sv review.
Secrets live in something built to hold them. List where each password, key, and token the app needs actually comes from: a key vault or your host's secret store, an environment variable, or a file in the code. Say who can read each one, and how you would replace one if it leaked. A secret nobody can rotate is the answer to this one.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-AC-05
V13.3.2Level 2StackVet can only show it missing

Access to secrets follows the principle of least privilege.

Verify that access to secret assets adheres to the principle of least privilege.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: config.workflow-hands-out-all-secrets. Looks for: A CI workflow that hands every secret to a job (toJSON(secrets), secrets: inherit), or puts secrets in the workflow-wide env: where every step reads them (only shows it missing)
    Needs: nothing: plain sv check
A person
Checked by hand, and recorded with sv review.
Each part of the app can reach only the secrets it needs. List where the app's keys and passwords live (a hosting dashboard, a secrets manager, .env files, CI settings) and which parts of the app read each one. Check that each service, job, and person has access only to the ones it uses: the website should not hold the payment admin key, a test job should not see production keys, and a database login should not be an administrator unless it must be. sv check finds a CI workflow that hands every secret to a job; this covers the rest.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-AC-05
V13.3.3Level 3The owner answers

All cryptographic operations are performed inside an isolated security module, such as a vault or a hardware security module, so key material is never exposed outside it.

Verify that all cryptographic operations are performed using an isolated security module (such as a vault or hardware security module) to securely manage and protect key material from exposure outside of the security module.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Are the app's most important keys kept in a locked-away service (a key vault or a security chip) that does the signing and unlocking itself, so the keys never reach the app's own memory or files?
When it applies
To every app held to its level.
V13.3.4Level 3The owner answers

Secrets are configured to expire and be rotated, as the app's documentation says.

Verify that secrets are configured to expire and be rotated based on the application's documentation.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
For each password or key the app uses, is it really set to run out and be replaced on the schedule the app's notes give, rather than only written down as a plan?
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-AC-05

V13.4 Unintended Information Leakage

V13.4.1Level 1StackVet can confirm or fail it

The app is deployed without its source control folders (.git, .svn), or they cannot be reached, from outside or by the app itself.

Verify that the application is deployed either without any source control metadata, including the .git or .svn folders, or in a way that these folders are inaccessible both externally and to the application itself.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.source-control-exposed. If it fails: The .git folder holds the whole history of the code, including anything ever committed and later deleted, such as a password. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V13.4.2Level 2StackVet can confirm or fail it

Debug modes are disabled for every component in production, so debugging features and information do not leak.

Verify that debug modes are disabled for all components in production environments to prevent exposure of debugging features and information leakage.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.debug-mode-on. Looks for: A web framework's debug mode is switched on in the code (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.error-detail-leak. If it fails: A stack trace names the framework, its version, the file layout and often the query that failed. It is the first thing somebody looking for a way in would like to read. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • The running app: probe.development-console-open. If it fails: A development console is built for the person writing the app, on their own computer. On an address others can reach it shows how the app is set up, and some do more: Werkzeug's runs code on the server for anybody who gets past its PIN, Laravel Ignition's has run commands for anybody at all (CVE-2021-3129), and Go's profiler hands out the program's memory. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • Outside tools: bandit, 1 rule. Its rules look for: a web framework left in debug mode
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: gosec, 1 rule. Its rules look for: Go's net/http/pprof imported, which serves profiling pages under /debug/pprof/ on the default server (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 6 rules. Its rules look for: a debug mode enabled that should be disabled in production
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a web framework left in debug mode
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V13.4.3Level 2StackVet can only show it missing

Web servers do not show directory listings unless that is explicitly intended.

Verify that web servers do not expose directory listings to clients unless explicitly intended.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.directory-listing. If it fails: A folder that lists its contents shows everything in it, including files nobody linked to and nobody meant to publish — a backup, an export, a key. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V13.4.4Level 2StackVet can confirm or fail it

The HTTP TRACE method is not supported in production, so it cannot leak information.

Verify that using the HTTP TRACE method is not supported in production environments, to avoid potential information leakage.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.trace-enabled. If it fails: Anything the browser attaches to a request — cookies, authorization headers — comes back in a readable body, which turns a scripting flaw elsewhere into a way of reading them. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V13.4.5Level 2StackVet can only show it missing

Documentation, such as for internal APIs, and monitoring endpoints are not exposed unless that is explicitly intended.

Verify that documentation (such as for internal APIs) and monitoring endpoints are not exposed unless explicitly intended.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.docs-or-monitoring-exposed. If it fails: Documentation lists every route and what it takes, internal ones included; a monitoring page shows how the app is built and what it is doing, sometimes with its settings. Either saves an attacker the work of finding out. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
A person
Checked by hand, and recorded with sv review.
Nothing internal is reachable from outside. From a browser that is not signed in, and ideally not on your network, try the addresses that exist for you rather than for visitors: /docs, /swagger, /metrics, /health, /debug, /admin, /.git. Each should either refuse or not exist.
When it applies
To every app held to its level.
V13.4.6Level 3StackVet can only show it missing

The app does not reveal detailed version information about its backend components.

Verify that the application does not expose detailed version information of backend components.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.version-disclosed. If it fails: A version number tells an attacker which published weaknesses to try first, without having to guess. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V13.4.7Level 3StackVet can only show it missing

The web tier serves only files with specific file extensions, so configuration files, source code, and other information are not leaked by accident.

Verify that the web tier is configured to only serve files with specific file extensions to prevent unintentional information, configuration, and source code leakage.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.static-files-from-app-folder. Looks for: The app serves files from the folder its own code is in (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.private-files-served. If it fails: Anyone can download them. A settings file or key hands over the passwords and keys in it; server code shows exactly where to look for weaknesses; a dump or backup can hold every user's data. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.

V14 Data Protection

V14.1 Data Protection Documentation

V14.1.1Level 2The owner answers

All sensitive data the application creates or handles is identified and classified into protection levels, including data only encoded (such as Base64 or a JWT's payload), with the regulations it must follow in mind.

Verify that all sensitive data created and processed by the application has been identified and classified into protection levels. This includes data that is only encoded and therefore easily decoded, such as Base64 strings or the plaintext payload inside a JWT. Protection levels need to take into account any data protection and privacy regulations and standards which the application is required to comply with.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
You know which of your data is sensitive. List every kind of information the app stores, including what it writes to logs and what it keeps in backups. Mark each with how much it would matter if it got out. Anything you cannot place is the thing to look at, and remember that encoded is not the same as protected.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-DM-01
V14.1.2Level 2The owner answers

Each protection level for sensitive data has documented requirements: encryption, integrity, retention, logging, access to logs, database encryption, privacy, and other confidentiality needs.

Verify that all sensitive data protection levels have a documented set of protection requirements. This must include (but not be limited to) requirements related to general encryption, integrity verification, retention, how the data is to be logged, access controls around sensitive data in logs, database-level encryption, privacy and privacy-enhancing technologies to be used, and other confidentiality requirements.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
For each kind of private information the app keeps: is it encrypted, how long is it kept, may it appear in logs, who can see it, and what does the privacy law you follow require?
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-DM-01, SBD-DM-05

V14.2 General Data Protection

V14.2.1Level 1StackVet can only show it missing

Sensitive data, such as an API key or a session token, is sent only in the body or the headers of a request, never in the web address.

Verify that sensitive data is only sent to the server in the HTTP message body or header fields, and that the URL and query string do not contain sensitive information, such as an API key or session token.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.password-in-url. If it fails: A password in the address ends up in browser history, server logs, and any proxy in between, where it can be read long after. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V14.2.2Level 2A check helps; a person decides

Sensitive data is not cached in server components such as load balancers and application caches, or it is securely purged after use.

Verify that the application prevents sensitive data from being cached in server components, such as load balancers and application caches, or ensures that the data is securely purged after use.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Signed in: probe.private-page-shared-cache. If it fails: A shared cache in front of the app, such as a load balancer or a content delivery network, may keep one person's private page and hand it to the next person who asks for the same address. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Is private information kept out of the caches the app does not control (your host's edge, a content delivery network), or protected when it is stored there?
When it applies
To every app held to its level.
V14.2.3Level 2A check helps; a person decides

Sensitive data is never sent to untrusted parties, such as user trackers, where it would be collected outside the application's control.

Verify that defined sensitive data is not sent to untrusted parties (e.g., user trackers) to prevent unwanted collection of data outside of the application's control.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
1 check speaks to it
  • Signed in: probe.account-details-sent-elsewhere. If it fails: A signed-in page sends the person's own account details to another website, such as an analytics or advertising service, where they are collected outside the app's control and its privacy promises. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
Nothing sensitive is handed to an outside service. Open the app in a browser with the network panel recording, sign in, and use it normally. Look at every request going somewhere that is not your own address — analytics, error reporting, fonts, chat widgets. Check what is in each, including the address of the page, which often carries names or record numbers. With browser under [stack.run.users], sv report --run looks through what the signed-in pages send to other sites for the test account's email address, password, and session cookie; but code a page loads from another site cannot run inside the fence, so what analytics and chat widgets send is still yours to look at.
When it applies
To every app held to its level.
V14.2.4Level 2The owner answers

The controls for sensitive data (encryption, integrity, retention, logging, privacy) are implemented as the documentation sets them for that data's protection level.

Verify that controls around sensitive data related to encryption, integrity verification, retention, how the data is to be logged, access controls around sensitive data in logs, privacy and privacy-enhancing technologies, are implemented as defined in the documentation for the specific data's protection level.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Sensitive data is handled the way your notes say. Take each protection you wrote down — encrypted, kept for so long, never in logs — and check the app against it. Search the logs for the data that should never appear there, and confirm that something really deletes records when their time is up.
When it applies
To every app held to its level.
V14.2.5Level 3No check yet

Caches store only responses with the content type expected for that resource, never sensitive or dynamic content, and asking for a file that does not exist gets a 404 or 302, not another valid file (Web Cache Deception).

Verify that caching mechanisms are configured to only cache responses which have the expected content type for that resource and do not contain sensitive, dynamic content. The web server should return a 404 or 302 response when a non-existent file is accessed rather than returning a different, valid file. This should prevent Web Cache Deception attacks.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.
V14.2.6Level 3The owner answers

The app returns only the minimum sensitive data its features need, such as just some digits of a credit card number; where the full data is needed, it is masked on screen unless the user chooses to view it.

Verify that the application only returns the minimum required sensitive data for the application's functionality. For example, only returning some of the digits of a credit card number and not the full number. If the complete data is required, it should be masked in the user interface unless the user specifically views it.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app shows or sends sensitive details (a card number, an ID number), does it send only the part that is needed, such as the last four digits, and hide the rest on screen unless the person asks to see it?
When it applies
To every app held to its level.
V14.2.7Level 3The owner answers

Sensitive information has a data retention classification, so outdated or unnecessary data is deleted automatically, on a defined schedule, or as the situation requires.

Verify that sensitive information is subject to data retention classification, ensuring that outdated or unnecessary data is deleted automatically, on a defined schedule, or as the situation requires.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Does the app delete sensitive information it no longer needs (old accounts, old orders, old messages) on its own, on a schedule, rather than keeping everything for ever?
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-DM-05
V14.2.8Level 3No check yet

Sensitive information is removed from the metadata of files users upload (such as a photo's location), unless the user consents to keeping it.

Verify that sensitive information is removed from the metadata of user-submitted files unless storage is consented to by the user.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
To every app held to its level.

V14.3 Client-side Data Protection

V14.3.1Level 1StackVet can confirm or fail it

Signed-in data is cleared from the browser when the session ends, even when the server cannot be reached.

Verify that authenticated data is cleared from client storage, such as the browser DOM, after the client or session is terminated. The 'Clear-Site-Data' HTTP response header field may be able to help with this but the client-side should also be able to clear up if the server connection is not available when the session is terminated.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Signed in: probe.storage-kept-after-sign-out. If it fails: What the app kept in the browser for a signed-in person is still there after they sign out, where the next person to use that browser can read it: a shared computer, a borrowed phone, a library. (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.clear-site-data. Looks for: Whether signing out tells the browser to clear what the site stored in it (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “Clearing browser data at sign-out needs a sign-out; this app has no sign-in.”
V14.3.2Level 2StackVet can confirm or fail it

Responses carrying sensitive data set anti-caching headers (Cache-Control: no-store), so browsers do not cache it.

Verify that the application sets sufficient anti-caching HTTP response header fields (i.e., Cache-Control: no-store) so that sensitive data is not cached in browsers.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.private-page-cached. If it fails: A private page a browser is allowed to store stays on the machine after the person signs out, where the next person to press Back can read it — which is what shared and public computers make ordinary.
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
When the app has sign-in. Otherwise the report says: “Cache rules for signed-in pages need sign-in; this app has no sign-in.”
V14.3.3Level 2StackVet can only show it missing

Browser storage (localStorage, sessionStorage, IndexedDB, or cookies) holds no sensitive data, apart from session tokens.

Verify that data stored in browser storage (such as localStorage, sessionStorage, IndexedDB, or cookies) does not contain sensitive data, with the exception of session tokens.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.password-in-browser-storage. Looks for: A password is written into the browser's storage (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.password-in-browser-storage. If it fails: The account's password is kept in the browser, where any script on the page can read it and where it stays after the person signs out: on a shared computer, the next person can read it too. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.

V15 Secure Coding and Architecture

V15.1 Secure Coding and Architecture Documentation

V15.1.1Level 1The owner answers

The documentation sets deadlines for fixing third-party components with known weaknesses, and for keeping libraries up to date, by how risky they are.

Verify that application documentation defines risk based remediation time frames for 3rd party component versions with vulnerabilities and for updating libraries in general, to minimize the risk from these components.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
When a library the app uses turns out to have a security hole, how soon must it be updated, by how serious the hole is (critical within a week, say)? And how often are libraries updated anyway?
When it applies
To every app held to its level.
V15.1.2Level 2StackVet can confirm or fail it

An inventory, such as a software bill of materials (SBOM), lists every third-party library in use, and checks each comes from a trusted, maintained repository.

Verify that an inventory catalog, such as software bill of materials (SBOM), is maintained of all third-party libraries in use, including verifying that components come from pre-defined, trusted, and continually maintained repositories.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Reads the code: config.versions-pinned. If it fails: The inventory of third-party libraries this app ships is then a list of what was asked for rather than what is installed, so nobody can say whether a known vulnerability applies to it — and a component that is compromised upstream arrives on the next install without anything changing here. (only ever in part)
    Needs: nothing: plain sv check
  • Reads the code: sbom. Looks for: Whether the list of what the app ships (its bill of materials) could be read completely from its lockfiles (only ever in part)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.
V15.1.3Level 2The owner answers

The documentation names the functions that are slow or use many resources, and how to keep them from making the app unavailable or taking longer than the consumer's timeout.

Verify that the application documentation identifies functionality which is time-consuming or resource-demanding. This must include how to prevent a loss of availability due to overusing this functionality and how to avoid a situation where building a response takes longer than the consumer's timeout. Potential defenses may include asynchronous processing, using queues, and limiting parallel processes per user and per application.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Which features are slow or heavy (big exports, reports, AI requests, image processing), and what stops one person's heavy use from making the app unavailable to everyone else?
StackVet shows where to look in the code: locate.heavy-work, locate.availability-brakes lists the places.
When it applies
To every app held to its level.
V15.1.4Level 3The owner answers

The app's documentation points out which third-party libraries are considered risky components.

Verify that application documentation highlights third-party libraries which are considered to be "risky components".

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Of the add-on packages the app uses, which ones would you call risky (no longer looked after, handling what strangers send, or hard to replace), and why?
When it applies
To every app held to its level.
V15.1.5Level 3The owner answers

The app's documentation points out the parts of the app that use dangerous functionality.

Verify that application documentation highlights parts of the application where "dangerous functionality" is being used.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
Which parts of the app do something that could go badly wrong if misused (running another program, reading uploaded files, building a file path or a database query from what someone typed), and where are they?
When it applies
To every app held to its level.

V15.2 Security Architecture and Dependencies

V15.2.1Level 1StackVet can confirm or fail it

Every component the app ships is within the update and fix deadlines its documentation sets.

Verify that the application only contains components which have not breached the documented update and remediation time frames.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • Known vulnerabilities: advisories. Looks for: Every package the app ships, compared with a local copy of the OSV database of known vulnerabilities
    Needs: a local copy of the OSV database (--advisories DIR)
  • Outside tools: brakeman, 2 rules. Its rules look for: an end-of-life Rails version: a component past its update and remediation time frames; an end-of-life Ruby version: a component past its update and remediation time frames
    Needs: the tool installed; runs with sv report unless --no-tools
A person
Checked by hand, and recorded with sv review.
Nothing is past the update deadline you set. Write the time frames from your security notes into stackvet.toml as [policy] fix-within-days, one number of days per severity, then run sv report --advisories DIR (or sv audit) against a local advisory database. It lists the packages with a known vulnerability and puts the ones past your time frame first. Those are the answer to this one. Without the numbers it counts every known vulnerability as late, whatever its age.
When it applies
To every app held to its level.
V15.2.2Level 2The owner answers

The application defends against slow or resource-heavy functions making it unavailable, as the documented decisions set out.

Verify that the application has implemented defenses against loss of availability due to functionality which is time-consuming or resource-demanding, based on the documented security decisions and strategies for this.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Time-consuming features cannot cause a loss of availability. Take each time-consuming or resource-demanding feature you documented — an export, a report, an AI request, image processing. Start several at once from one account and see whether the rest of the application stays usable. The defenses you wrote down should stop any one person causing a loss of availability for everybody else.
StackVet shows where to look in the code: locate.heavy-work, locate.availability-brakes lists the places.
When it applies
To every app held to its level.
V15.2.3Level 2StackVet can only show it missing

The production environment holds only the functionality the application needs, with no test code, sample snippets, or development features exposed.

Verify that the production environment only includes functionality that is required for the application to function, and does not expose extraneous functionality such as test code, sample snippets, and development functionality.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: config.development-server-started. Looks for: The app is started with a development server (only shows it missing)
    Needs: nothing: plain sv check
  • The running app: probe.development-console-open. If it fails: A development console is built for the person writing the app, on their own computer. On an address others can reach it shows how the app is set up, and some do more: Werkzeug's runs code on the server for anybody who gets past its PIN, Laravel Ignition's has run commands for anybody at all (CVE-2021-3129), and Go's profiler hands out the program's memory. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
V15.2.4Level 3StackVet can only show it missing

Every third-party component, and every dependency it brings in, comes from the expected repository, the organization's own or an outside one, so nobody can slip in a look-alike package (dependency confusion).

Verify that third-party components and all of their transitive dependencies are included from the expected repository, whether internally owned or an external source, and that there is no risk of a dependency confusion attack.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.download-piped-to-shell. Looks for: Code downloaded from the network is run straight away (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.
V15.2.5Level 3The owner answers

The parts of the app documented as dangerous functionality or using risky components get extra protection, such as a sandbox, a container, or network isolation, so an attacker who breaks into one part cannot easily move to the rest.

Verify that the application implements additional protections around parts of the application which are documented as containing "dangerous functionality" or using third-party libraries considered to be "risky components". This could include techniques such as sandboxing, encapsulation, containerization or network level isolation to delay and deter attackers who compromise one part of an application from pivoting elsewhere in the application.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Are the parts of the app the notes call risky (the add-on packages and the dangerous features) kept apart from the rest, so someone who breaks in there cannot easily reach everything else?
When it applies
To every app held to its level.

V15.3 Defensive Coding

V15.3.1Level 1StackVet can only show it missing

The app returns only the fields of a record that are needed, never the whole record with fields some users must not see.

Verify that the application only returns the required subset of fields from a data object. For example, it should not return an entire data object, as some individual fields should not be accessible to users.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.record-returns-secret-fields. If it fails: A record handed back to the browser carries fields nobody outside the server should ever see. Whatever is in them has already left. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app sends a record to a page or another program, does it send only the parts that will be shown, and not the whole record with things that person should not see?
StackVet shows where to look in the code: locate.field-lists lists the places.
When it applies
To every app held to its level.
V15.3.2Level 2StackVet can confirm or fail it

When the backend calls outside addresses, it does not follow redirects unless that is intended.

Verify that where the application backend makes calls to external URLs, it is configured to not follow redirects unless it is intended functionality.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.fetch-follows-redirect. If it fails: Given an address that answers with a redirect, the feature went on to wherever the redirect pointed. A check on the first address is then no check at all: somebody gives an allowed address that redirects to a forbidden one. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, so there are no outbound redirects to control.” When the app has AI features. When the app has email.
V15.3.3Level 2StackVet can confirm or fail it

The application protects against mass assignment by limiting which fields each action may set, so a field not meant to be changed by an action cannot be.

Verify that the application has countermeasures to protect against mass assignment attacks by limiting allowed fields per controller and action, e.g., it is not possible to insert or update a field value when it was not intended to be part of that action.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
7 checks speak to it
  • Reads the code: ast.request-body-passed-whole. Looks for: The whole request body is saved as it came (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.role-field-trusted. If it fails: Anybody who signs up can make themselves an administrator by adding one field to the sign-up form, which takes a browser's developer tools and no skill. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.email-change-role-trusted. If it fails: Anybody with an account can make themselves an administrator by adding one field to the request that changes their email address, which takes a browser's developer tools and no skill. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Signed in: probe.owner-field-trusted. If it fails: Anybody signed in can put a record into somebody else's account by adding one field to the request that creates it: a note, a message, or an order the other person never wrote shows as theirs. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
  • Outside tools: brakeman, 5 rules. Its rules look for: mass assignment without protection: a model accepts fields that were not intended for the action; mass assignment: a dangerous field such as an admin flag is permitted for the action; mass assignment: a model is created or updated from all submitted fields; mass assignment: permit! allows every submitted field to be inserted or updated; mass assignment: permit_all_parameters allows every submitted field for every controller and action
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools: semgrep, 6 rules. Its rules look for: mass assignment: request fields bound straight onto a model
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: request parameters permitted wholesale (permit!) and passed to a model, so a request can set any field
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V15.3.4Level 2StackVet can only show it missing

Proxies and middleware pass on the user's original IP address in trusted fields the user cannot manipulate, and the app uses that value for logging and rate limiting.

Verify that all proxying and middleware components transfer the user's original IP address correctly using trusted data fields that cannot be manipulated by the end user, and the application and web server use this correct value for logging and security decisions such as rate limiting, taking into account that even the original IP address may not be reliable due to dynamic IPs, VPNs, or corporate firewalls.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Signed in: probe.forwarded-for-trusted. If it fails: Anybody can step around the limit on guessing passwords by claiming a different address in each request, which costs them nothing. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If anything sits between visitors and the app, does it pass on each visitor's real internet address in a way the visitor cannot fake?
When it applies
To every app held to its level.
V15.3.5Level 2StackVet can confirm or fail it

The code checks variables are of the correct type and uses strict equality and comparisons, so type juggling or type confusion cannot be exploited.

Verify that the application explicitly ensures that variables are of the correct type and performs strict equality and comparator operations. This is to avoid type juggling or type confusion vulnerabilities caused by the application code making an assumption about a variable type.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: type confusion: a request parameter assumed to be a string can be sent as an array, and the code does not check its type
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V15.3.6Level 2StackVet can confirm or fail it

JavaScript code is written to prevent prototype pollution, for example by using Map() or Set() instead of plain object literals.

Verify that JavaScript code is written in a way that prevents prototype pollution, for example, by using Set() or Map() instead of object literals.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Outside tools you turn on: codeql-javascript, 3 rules. Its rules look for: prototype pollution: an object's prototype can be changed through property names taken from user input
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V15.3.7Level 2StackVet can only show it missing

The application defends against HTTP parameter pollution, especially where its framework does not tell apart parameters from the query string, body, cookies, and header fields.

Verify that the application has defenses against HTTP parameter pollution attacks, particularly if the application framework makes no distinction about the source of request parameters (query string, body parameters, cookies, or header fields).

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Reads the code: ast.request-parameter-source-merged. Looks for: A request value is read without saying where it came from (only shows it missing)
    Needs: nothing: plain sv check
When it applies
To every app held to its level.

V15.4 Safe Concurrency

V15.4.1Level 3The owner answers

Objects shared by several threads at once (caches, files, data in memory) are accessed safely, with thread-safe types and locks or semaphores, to avoid race conditions and corrupted data.

Verify that shared objects in multi-threaded code (such as caches, files, or in-memory objects accessed by multiple threads) are accessed safely by using thread-safe types and synchronization mechanisms like locks or semaphores to avoid race conditions and data corruption.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Where many requests at once can change the same thing the app keeps in memory (a cache, a list of signed-in people, a counter), is it protected so two changes at the same moment cannot spoil it?
StackVet shows where to look in the code: locate.shared-state lists the places.
When it applies
To every app held to its level.
V15.4.2Level 3StackVet can confirm or fail it

A check on a resource's state, such as whether a file exists or a user has access, and the action that depends on it, happen as a single atomic operation, so nothing can change in between (time-of-check to time-of-use).

Verify that checks on a resource's state, such as its existence or permissions, and the actions that depend on them are performed as a single atomic operation to prevent time-of-check to time-of-use (TOCTOU) race conditions. For example, checking if a file exists before opening it, or verifying a user’s access before granting it.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools: bandit, 1 rule. Its rules look for: a temporary file name made with tempfile.mktemp, which another process can take before the file is created (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: a file's state checked separately before the file is used, which another process can change in between
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: a temporary file name made with tempfile.mktemp, which another process can take before the file is created (only shows it missing)
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V15.4.3Level 3StackVet can only show it missing

Locks are used consistently, so threads cannot get stuck waiting on each other or retrying forever, and the locking stays inside the code that manages the resource, where outside code cannot change it.

Verify that locks are used consistently to avoid threads getting stuck, whether by waiting on each other or retrying endlessly, and that locking logic stays within the code responsible for managing the resource to ensure locks cannot be inadvertently or maliciously modified by external classes or code.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • Outside tools: semgrep, 1 rule. Its rules look for: a lock taken and not released on every way out of the function (only shows it missing)
    Needs: the tool installed; runs with sv report unless --no-tools
When it applies
To every app held to its level.
V15.4.4Level 3The owner answers

Resources are shared fairly, for example through thread pools, so lower-priority threads still get to run in a reasonable time (no thread starvation).

Verify that resource allocation policies prevent thread starvation by ensuring fair access to resources, such as by leveraging thread pools, allowing lower-priority threads to proceed within a reasonable timeframe.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When the app is busy, does every job eventually get its turn, or can a flood of one kind of work keep the rest waiting for ever?
When it applies
To every app held to its level.

V16 Security Logging and Error Handling

V16.1 Security Logging Documentation

V16.1.1Level 2The owner answers

An inventory documents the logging at each layer: what events are logged, the formats, where logs are stored, how they are used, who can access them, and how long they are kept.

Verify that an inventory exists documenting the logging performed at each layer of the application's technology stack, what events are being logged, log formats, where that logging is stored, how it is used, how access to it is controlled, and for how long logs are kept.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Written down in security-notes.md, which sv notes starts.
What does the app write in its logs, where are they kept, who can read them, what are they for, and how long are they kept?
StackVet shows where to look in the code: locate.log-destinations lists the places.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-MT-01

V16.2 General Logging

V16.2.1Level 2StackVet can confirm or fail it

Each log entry has the metadata needed to investigate an event's timeline: when, where, who, and what.

Verify that each log entry includes necessary metadata (such as when, where, who, what) that would allow for a detailed investigation of the timeline when an event happens.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.log-line-metadata. Looks for: Whether the line recording a security event says when, where from, and who
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-MT-01
V16.2.2Level 2StackVet can confirm or fail it

All logging components use synchronized time sources, and security event timestamps are in UTC or carry an explicit time zone offset.

Verify that time sources for all logging components are synchronized, and that timestamps in security event metadata use UTC or include an explicit time zone offset. UTC is recommended to ensure consistency across distributed systems and to prevent confusion during daylight saving time transitions.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.log-timestamp-zoned. Looks for: A security event is logged with a time that does not say its zone
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Do all the parts of the app that keep logs have clocks that agree, and does every time they write say which time zone it is in?
When it applies
To every app held to its level.
V16.2.3Level 2The owner answers

Logs are stored or sent only to the files and services the log inventory documents.

Verify that the application only stores or broadcasts logs to the files and services that are documented in the log inventory.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Checked by hand, and recorded with sv review.
Logs go only where your inventory says. Compare the log destinations in your inventory with where they really go: files on the server, your host's logging, any outside service, and anything printed to the console. A destination nobody wrote down is one nobody is watching or protecting.
StackVet shows where to look in the code: locate.log-destinations lists the places.
When it applies
To every app held to its level.
V16.2.4Level 2StackVet can confirm or fail it

Logs can be read and correlated by the log processor in use, preferably by using a common logging format.

Verify that logs can be read and correlated by the log processor that is in use, preferably by using a common logging format.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.log-common-format. Looks for: Whether that line is written in a format log tools read without being taught
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V16.2.5Level 2StackVet can confirm or fail it

Sensitive data is logged only as its protection level allows: some, such as credentials or payment details, never; others, such as session tokens, only hashed or masked.

Verify that when logging sensitive data, the application enforces logging based on the data's protection level. For example, it may not be allowed to log certain data, such as credentials or payment details. Other data, such as session tokens, may only be logged by being hashed or masked, either in full or partially.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
4 checks speak to it
  • Outside tools: semgrep, 1 rule. Its rules look for: sensitive data such as credentials written to logs
    Needs: the tool installed; runs with sv report unless --no-tools
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: sensitive data such as credentials written to logs
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: sensitive data such as credentials written to logs
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: sensitive data such as credentials written to logs
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.

V16.3 Security Events

V16.3.1Level 2StackVet can confirm or fail it

Every authentication operation is logged, successful and unsuccessful, preferably with the type of authentication or factors used.

Verify that all authentication operations are logged, including successful and unsuccessful attempts. Additional metadata, such as the type of authentication or factors used, should also be collected.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.authentication-logged. Looks for: Whether the app writes down a refused sign-in the run made
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V16.3.2Level 2StackVet can confirm or fail it

Failed authorization attempts are logged.

Verify that failed authorization attempts are logged. For L3, this must include logging all authorization decisions, including logging when sensitive data is accessed (without logging the sensitive data itself).

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.authorization-failure-logged. Looks for: Whether the app writes down a request it refused to someone not allowed to make it
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
V16.3.3Level 2StackVet can confirm or fail it

The security events the documentation defines are logged, as are attempts to bypass security controls such as input validation, business logic, and anti-automation.

Verify that the application logs the security events that are defined in the documentation and also logs attempts to bypass the security controls, such as input validation, business logic, and anti-automation.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Signed in: probe.bypass-attempt-logged. Looks for: Whether the app writes down a form sent as another site would send it, which it refused (only ever in part)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
A person
Checked by hand, and recorded with sv review.
The events you said would be logged really are. Do each thing your notes say gets logged — a failed sign-in, a permission refused, a record deleted — then look in the logs and confirm each one is there with enough detail to tell who and when. Then try something that should be refused, such as posting a form with a field the app does not expect, and check that the refusal was logged too.
When it applies
To every app held to its level.
V16.3.4Level 2StackVet can confirm or fail it

Unexpected errors and security control failures, such as a backend TLS failure, are logged.

Verify that the application logs unexpected errors and security control failures such as backend TLS failures.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.ai-service-failure-logged. If it fails: An outside service failing, which nothing in the app expected, leaves no trace to find the cause by, or to see that it keeps happening. (only credits it, only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
A person
Checked by hand, and recorded with sv review.
Unexpected errors and failed security checks are logged. Open the app's logs where they are kept (the hosting dashboard, a log service, or the terminal it runs in). Then cause a few failures: stop the database briefly or give it a wrong password, send a request the app should refuse, and visit an address that makes it fail. Each should leave a line in the log saying what went wrong and when, without a password or key in it. Failures that leave no trace are the wrong answer.
When it applies
To every app held to its level.

V16.4 Log Protection

V16.4.1Level 2StackVet can confirm or fail it

Every logging component encodes data appropriately to prevent log injection.

Verify that all logging components appropriately encode data to prevent log injection.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
3 checks speak to it
  • Outside tools you turn on: codeql-javascript, 1 rule. Its rules look for: log injection: user input written to a log without encoding, so it can forge or break log entries
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-python, 1 rule. Its rules look for: log injection: user input written to a log without encoding, so it can forge or break log entries
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
  • Outside tools you turn on: codeql-ruby, 1 rule. Its rules look for: log injection: user input written to a log without encoding, so it can forge or break log entries
    Needs: the tool installed and turned on in stackvet.toml ([tools] codeql = true), for a use its license allows: an open-source app, academic research, or a paid GitHub Advanced Security license
When it applies
To every app held to its level.
V16.4.2Level 2StackVet can only show it missing

Logs are protected from unauthorized access and cannot be modified.

Verify that logs are protected from unauthorized access and cannot be modified.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
1 check speaks to it
  • The running app: probe.log-file-served. If it fails: The app's log is handed to anybody who asks for it, with whatever it holds: sessions and tokens, email addresses, the errors that show how the app is built. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-MT-07
V16.4.3Level 2The owner answers

Logs are sent securely to a logically separate system for analysis and alerting, so a breach of the application does not compromise them.

Verify that logs are securely transmitted to a logically separate system for analysis, detection, alerting, and escalation. The aim is to ensure that if the application is breached, the logs are not compromised.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Are the app's logs sent to a separate place, so someone who took over the app could not quietly delete them?
StackVet shows where to look in the code: locate.log-destinations lists the places.
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-MT-01

V16.5 Error Handling

V16.5.1Level 2StackVet can confirm or fail it

When an unexpected or security-sensitive error occurs, the app returns a generic message, never internal details such as stack traces, queries, secret keys, or tokens.

Verify that a generic message is returned to the consumer when an unexpected or security-sensitive error occurs, ensuring no exposure of sensitive internal system data such as stack traces, queries, secret keys, and tokens.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
2 checks speak to it
  • The running app: probe.error-detail-leak. If it fails: A stack trace names the framework, its version, the file layout and often the query that failed. It is the first thing somebody looking for a way in would like to read. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
  • The running app: probe.ai-service-error-shown. If it fails: When the AI service fails, the person sees the service's own error, or a trace of the app's code, instead of a plain message. That says which service the app uses and how it calls it, and an error can carry more, such as a key's first characters or an account id. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-RR-01
V16.5.2Level 2StackVet can confirm or fail it

The application keeps operating securely when an outside resource fails, for example with circuit breakers or graceful degradation.

Verify that the application continues to operate securely when external resource access fails, for example, by using patterns such as circuit breakers or graceful degradation.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • The running app: probe.ai-service-failure-handled. If it fails: One failed call to the AI service leaves the feature broken for everyone afterwards, so an outage at the provider, or one bad answer, takes the app down with it. (only ever in part)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
When it applies
When the app has calls to outside services. Otherwise the report says: “This app does not call other services over the network, so there are no outbound failures to handle.” When the app has AI features. When the app has email.
Secure by Design controls that ask the same
SBD-AS-07, SBD-RR-02
V16.5.3Level 2StackVet can only show it missing

The application fails gracefully and securely, including on an exception, so it never fails open, such as completing a transaction despite a validation error.

Verify that the application fails gracefully and securely, including when an exception occurs, preventing fail-open conditions such as processing a transaction despite errors resulting from validation logic.

What StackVet does
A check can find it not met. Finding nothing does not show it is met, so a clean run credits nothing.
Checks
2 checks speak to it
  • Reads the code: ast.check-passes-on-error. Looks for: A check answers "yes" when it fails (only shows it missing)
    Needs: nothing: plain sv check
  • Signed in: probe.crashed-on-ordinary-request. If it fails: A request anybody could send makes the app fail with a server error rather than an answer: the person gets no useful message, and an exception the app does not handle can leave work half done. (only shows it missing)
    Needs: the above, and a users section with test accounts, or an oidc section for a sign-in through another service
When it applies
To every app held to its level.
Secure by Design controls that ask the same
SBD-RR-01
V16.5.4Level 3A check helps; a person decides

A last-resort error handler catches every unhandled exception, so the error's details still reach the logs and one error cannot take down the whole application.

Verify that a "last resort" error handler is defined which will catch all unhandled exceptions. This is both to avoid losing error details that must go to log files and to ensure that an error does not take down the entire application process, leading to a loss of availability.

What StackVet does
A check gives supporting evidence, but the requirement asks for a decision or a document only a person can give.
Checks
2 checks speak to it
  • Reads the code: config.last-resort-error-handler. Looks for: A last-resort error handler defined in the app's code (Node's process.on('uncaughtException'), Express's four-argument error middleware, a handler for every Exception in Flask or FastAPI, Django's handler500, rescue_from StandardError, @ControllerAdvice, UseExceptionHandler, Go's recover()), shown as supporting evidence; that it catches every unhandled exception is not something files show
    Needs: nothing: plain sv check
  • The running app: probe.app-stopped-during-questions. If it fails: Anyone who sends the same request can stop the app for everyone, as often as they like, and the error that did it may never reach the logs. (only shows it missing)
    Needs: a container backend and a run section (--run); for the AI checks, an ai section too
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If something goes wrong in the app that nothing else was ready for, is there a final safety net that writes down what happened and keeps the app running for everyone else?
When it applies
To every app held to its level.

V17 WebRTC

V17.1 TURN Server

V17.1.1Level 2StackVet can confirm or fail it

The TURN relay service allows access only to IP addresses that are not reserved for special purposes, such as internal networks, broadcast, or loopback, in IPv4 and IPv6.

Verify that the Traversal Using Relays around NAT (TURN) service only allows access to IP addresses that are not reserved for special purposes (e.g., internal networks, broadcast, loopback). Note that this applies to both IPv4 and IPv6 addresses.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Reads the code: config.turn-relay-reaches-reserved-addresses. Looks for: A TURN relay's own settings (turnserver.conf, or a coturn service's flags in a compose file) refusing every reserved range (the private, shared, link-local, and IPv6 local ranges), broadcast addresses, and loopback; the file is read, not the running relay (only ever in part)
    Needs: nothing: plain sv check
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.1.2Level 3StackVet can confirm or fail it

The TURN service, a relay that helps calls get through firewalls, cannot be exhausted when legitimate users open a large number of ports on it.

Verify that the Traversal Using Relays around NAT (TURN) service is not susceptible to resource exhaustion when legitimate users attempt to open a large number of ports on the TURN server.

What StackVet does
A check can mark it checked, or find it needing attention. A clean result is one check satisfied, not proof the whole requirement is met.
Checks
1 check speaks to it
  • Reads the code: config.turn-relay-unlimited. Looks for: A TURN relay's own settings setting user-quota and total-quota above 0, so one user cannot open connections without limit; the file is read, not the running relay (only ever in part)
    Needs: nothing: plain sv check
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”

V17.2 Media

V17.2.1Level 2The owner answers

The key for the DTLS certificate is managed and protected as the documented policy for cryptographic keys sets.

Verify that the key for the Datagram Transport Layer Security (DTLS) certificate is managed and protected based on the documented policy for management of cryptographic keys.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
For live audio or video, the connection is protected with a certificate whose secret key the app or its media server keeps: where is that key stored, who can read it, and is it handled the way the app's other keys are?
StackVet shows where to look in the code: locate.media-server lists the places.
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.2Level 2The owner answers

The media server uses approved Datagram Transport Layer Security (DTLS) cipher suites and a secure DTLS-SRTP protection profile.

Verify that the media server is configured to use and support approved Datagram Transport Layer Security (DTLS) cipher suites and a secure protection profile for the DTLS Extension for establishing keys for the Secure Real-time Transport Protocol (DTLS-SRTP).

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Is the media server for live audio and video set to use only the encryption choices that are currently approved, and not older weak ones kept for compatibility?
StackVet shows where to look in the code: locate.media-server lists the places.
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.3Level 2The owner answers

The media server checks SRTP authentication, so injected RTP packets cannot deny service or insert audio or video into a stream.

Verify that Secure Real-time Transport Protocol (SRTP) authentication is checked at the media server to prevent Real-time Transport Protocol (RTP) injection attacks from leading to either a Denial of Service condition or audio or video media insertion into media streams.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Does the media server throw away any audio or video packet that fails its authentication check, so nobody can slip their own sound or picture into a call?
StackVet shows where to look in the code: locate.media-server lists the places.
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.4Level 2The owner answers

The media server keeps processing incoming media traffic when it receives malformed Secure Real-time Transport Protocol (SRTP) packets.

Verify that the media server is able to continue processing incoming media traffic when encountering malformed Secure Real-time Transport Protocol (SRTP) packets.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If the media server receives broken or garbled audio or video packets, does it drop them and carry on with everyone else's call, rather than stopping or crashing?
StackVet shows where to look in the code: locate.media-server lists the places.
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.5Level 3The owner answers

The media server keeps processing incoming media traffic during a flood of SRTP packets, the secure audio and video stream, from legitimate users.

Verify that the media server is able to continue processing incoming media traffic during a flood of Secure Real-time Transport Protocol (SRTP) packets from legitimate users.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If many real callers send a lot of audio and video at once, does the media server keep carrying everyone's calls, rather than falling over?
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.6Level 3The owner answers

The media server is not open to DTLS's ClientHello race condition, checked by whether it is publicly known to be vulnerable or by running the race condition test.

Verify that the media server is not susceptible to the "ClientHello" Race Condition vulnerability in Datagram Transport Layer Security (DTLS) by checking if the media server is publicly known to be vulnerable or by performing the race condition test.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
Is the version of the media server the app uses free of a known flaw where a stranger can race a caller to set up the encrypted connection first?
StackVet shows where to look in the code: locate.media-server lists the places.
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.7Level 3The owner answers

Any audio or video recording tied to the media server keeps processing incoming media traffic during a flood of SRTP packets from legitimate users.

Verify that any audio or video recording mechanisms associated with the media server are able to continue processing incoming media traffic during a flood of Secure Real-time Transport Protocol (SRTP) packets from legitimate users.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If the app records calls, does recording keep working when many people send a lot of audio and video at once, rather than stopping or dropping parts of calls?
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.2.8Level 3The owner answers

The DTLS certificate is checked against the fingerprint in the call's Session Description Protocol (SDP), and the media stream is stopped if they do not match, so the stream is the real one.

Verify that the Datagram Transport Layer Security (DTLS) certificate is checked against the Session Description Protocol (SDP) fingerprint attribute, terminating the media stream if the check fails, to ensure the authenticity of the media stream.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
When a call starts, does the media server check that the other side's encryption certificate matches the one announced when the call was set up, and hang up if it does not?
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”

V17.3 Signaling

V17.3.1Level 2The owner answers

The signaling server keeps processing legitimate signaling messages during a flood, through rate limiting at the signaling level.

Verify that the signaling server is able to continue processing legitimate incoming signaling messages during a flood attack. This should be achieved by implementing rate limiting at the signaling level.

What StackVet does
No check speaks to it. StackVet asks the owner, and records the answer through sv review: as documented, attested, or checked by hand, never as checked.
A person
Answered in stackvet.toml's [design] section: yes, no, not sure, or planned, and where in the code.
If someone floods the part of the app that sets up calls with messages, does it limit how many each sender can send, so real people can still start and join calls?
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”
V17.3.2Level 2No check yet

The signaling server keeps processing legitimate signaling messages when a malformed one arrives, through input validation and robust error handling.

Verify that the signaling server is able to continue processing legitimate signaling messages when encountering malformed signaling message that could cause a denial of service condition. This could include implementing input validation, safely handling integer overflows, preventing buffer overflows, and employing other robust error-handling techniques.

What StackVet does
Nothing in StackVet speaks to it yet. A passing test of the app's own that names this requirement's ID is shown as tested by the app's own tests; otherwise the report says not verified.
When it applies
When the app has WebRTC. Otherwise the report says: “This app has no real-time audio or video calls (WebRTC).”