Security reviewer
Turn on the security reviewer, decide its findings and keep track of accepted risks.
The security reviewer is an agent that reviews changes for security only: leaked secrets, injection, broken access control, risky dependencies and unsafe infrastructure. It runs beside each repository's reviewer, but only when a change gives it a reason to, such as a new dependency or a change under an auth folder. Its findings name the weakness and the standard they break, and only the people you name as security owners decide them. A risk they accept has an expiry date and is listed on one page, so nothing accepted is forgotten.
Before you start
- At least one repository is watched. See Set up reviews.
- A model is set up. The scan for secrets and dependencies needs no model, but the security reviewer's reading does.
- Every organisation already has an agent named
security-reviewer. It does nothing until you set it up. Its know-how is a short main skill and five skills you can edit like any other:security-lens,security-finding,supply-chain-review,iac-reviewandllm-app-review. See Main skill and skills.
Set up security review
- Open Reviews and choose Security setup, or go to /reviews/security. The Now panel says Not set up: no repository's panel has the security lens.
- Under Agent, keep the seeded security reviewer or pick another agent.
- Under Repositories, tick the repositories it should review. The first time, every watched repository is ticked. Tick Blocking beside a repository whose open security findings should stop Approve (see Advisory or blocking).
- Under Runs when, keep or change the conditions (below), and the list in or a changed path matches a sensitive path.
- Under Security checks, list the check names on your Git host that count as security checks, one pattern per line. Leave it blank for the defaults.
- Under Security owners, tick the people who decide security findings and accepted risks. You are ticked by default. Name at least one.
- Under Dependencies, choose whether to Look up new dependencies on OSV.dev, and list your Private package scopes.
- Set the Default risk expiry (days), then choose Save security review.
You see Security review saved. The Now panel lists each repository as Advisory or Blocking, your owners and the dependency settings. Saving is all or nothing: if one field is wrong, nothing changes.
Saving puts the security reviewer on each ticked repository's review panel and takes it off the others. It uses one of the panel's 3 places. The security reviewer is never picked from the review pool; it joins only this way.
The settings
| Setting | What it does | Default |
|---|---|---|
| Runs when | The conditions that start the security reviewer on a change. It runs when any of them holds. Pick at least one condition or sensitive path. | A secret is found, a changed package has a known vulnerability, a security check failed, the change offers a new endpoint, the change is in the deep risk tier |
| or a changed path matches a sensitive path | Path patterns, one per line from the repository root. A change to a matching file starts the security reviewer. | Auth, login, session, OAuth, token, password, crypto and secret files; middleware, permissions, RBAC, ACL and policy files; migrations and .sql files; Dockerfiles, Terraform, Kubernetes and Helm files; CI workflows; .pem and .key files; nginx config |
| Security checks | A check on the Git host counts as a security check when its name contains one of these words (any case). | codeql, semgrep, snyk, trivy, gitleaks, sonar, dependency-review, osv-scanner, grype, checkov, tfsec, bandit, gosec, brakeman |
| Security owners | 1 to 20 people with the Member or Admin role. Only they decide security findings and accepted risks. | You |
| Look up new dependencies on OSV.dev | Sends the name and version of each new or changed dependency to the public OSV.dev vulnerability database. | On |
| Private package scopes | One scope per line, such as @acme, at most 50. Packages under these scopes, and packages from a private registry, are never sent to OSV.dev. They show as not checked (private). | None |
| Default risk expiry (days) | How far ahead the expiry date is filled in when an owner accepts a risk. 7 to 365. | 90 |
Turn security review off
- On Security setup, choose Turn off security review.
- You see Security review is off: no panel has the security lens. Owners and settings are kept.
Accepted risks stay on their page. Set it up again at any time; your owners and settings are still there.
How a security review works
The scan, with no model
On a repository whose panel has the security reviewer, every round starts with a scan that uses no model. It reads:
- Secrets on added lines: private keys, cloud and Git host tokens, Slack and Stripe live keys, model provider keys, JWTs, passwords in URLs and assignments that look like secrets. A hit in a test path counts as medium. At most 5 secret findings are written.
- Dependencies: what changed in
go.mod,package-lock.json,yarn.lock,poetry.lock,Pipfile.lock,Cargo.lock,Gemfile.lock,composer.lock,pom.xmlandrequirements*.txt, looked up on OSV.dev. At most 5 findings named "Vulnerable dependency name version". - Sensitive paths the change touches, and security checks on the latest commit.
The review page shows a Security panel with what the scan found, or Security scan: nothing found. A secret is shown masked, for example AKIA…(20 characters), with the line Values are masked; the portal never keeps them. No secret value is stored or posted anywhere. A secret finding's fix says to revoke the key, remove it from history and load it from the secret store.
The security reviewer's reading
When one of the Runs when conditions holds, the security reviewer reads the change with a model. It is given security checklists for what the change touches (web, API, infrastructure, apps that call a model, supply chain and privacy) and may load one more. It uses no tool connections. It gets 15 model turns (20 for a deep change, 10 in a later round or a light review) and writes at most 10 findings, all about security.
Each of its findings carries:
| Field | Example |
|---|---|
| Security severity: critical, high, medium or low | high |
| The weakness, as a CWE number | CWE-89 |
| The OWASP Top 10 2025 category | A05 |
| The OWASP ASVS 5.0 requirement | V1.2 |
| Source and sink: where the untrusted value comes in, and where it does harm | quoted from the code |
| A scenario: how someone would exploit it | one or two sentences |
The severity sets the finding's level on the review: critical is Will break, high is Will break or Should fix, medium is Should fix or Note, and low is Note. The finding card shows the CWE line and a Security details fold with the standards, the quoted source and sink, the scenario and compliance tags (such as PCI DSS 4.0 or ISO/IEC 27001:2022 controls), marked Compliance tags, for reference; not an attestation.
Decide a security finding
A security reviewer's finding says who decides it: Decided by security owners: … with their names. If no owner is named, it says Decided by security owners. None is named yet, so an admin decides.
- Open the review and find the finding.
- Pick To fix, Accept the risk or Not an issue, with a reason for the last two. See Decide, send back or approve.
- For Accept the risk, set Accept the risk until (security findings; a year at most). It is filled with today plus the default expiry. Pick a date from tomorrow to a year from today.
- Save your decisions, then send the review back or approve it as usual.
Findings about security that the repository's own reviewer writes are decided like any other finding; only the security reviewer's findings need an owner.
Advisory or blocking
| Advisory (default) | Blocking | |
|---|---|---|
| Approve | Not stopped by security findings. Open ones stay listed, undecided, in the review comment. | Stopped until a security owner decides each security finding. |
entropix/review status | Security findings are not counted. | Security findings are counted like any finding. |
entropix/security status | Not posted. | Posted on every round (below). |
On a blocking repository, the entropix/security status on the latest commit reads:
- pending: "Entropix is checking round N for security";
- failure: "N Critical/High security findings open", counting critical and high findings that are undecided or marked to fix (medium and low never fail it);
- success: "No open Critical/High security findings", with "· N accepted until date" when risks were accepted;
- error, when the review itself failed.
Your Git host can require this status before a merge. That is set on the Git host, not in Entropix.
Keep track of accepted risks
Every security finding an owner accepted is listed at /reviews/risks once its round closes: when the review is sent back, approved or the change is merged. The Reviews page header shows how many there are and how many expire soon.
- Open Reviews and choose Accepted risks.
- Use the chips to filter: All open, Expiring in 14 days, Expired, Resolved.
- Read each row: the risk (title, CWE, OWASP category, file and line), the change, the severity, who accepted it and why, when it expires, and its state.
- To keep a risk, open Renew, write Why it is still accepted, pick an Until date (tomorrow to a year ahead) and choose Renew. You see Risk renewed. and the row counts the renewal.
- When it is fixed, open Mark resolved, write How it was resolved (at most 1,000 characters) and choose Mark resolved. You see Risk marked resolved.
If the same finding is accepted again in a later round, its row is updated rather than added twice. The page shows up to 200 rows.
Security owners also see two lines in Home's Needs you: one when accepted risks have expired, and one when security findings wait for an owner's decision.
The review.security switch
An operator (whoever runs your Entropix server) can turn security review off for your whole organisation with the review.security feature switch. It is on unless set otherwise, so setting up the security reviewer is all you need. It is read only for repositories whose panel has the security reviewer.
| Value | What happens |
|---|---|
| on (default) | The scan runs and the security reviewer reads the change when a condition holds. |
| shadow | The scan runs and records why the security reviewer would have run, but no security findings are shown. |
| off | No scan, and the security reviewer is skipped. Security setup says Security review is switched off for your organisation. |
What you can and can't do
- Choose which repositories get a security review, and which of them block Approve.
- Choose what starts it: conditions, sensitive paths and your own security checks.
- Keep private packages from ever being sent to OSV.dev.
- Name up to 20 security owners who alone decide its findings.
- Accept a risk for up to a year, renew it, or mark it resolved.
- Edit the security reviewer's skills like any agent's.
- Accept a security risk with no expiry, or for more than a year.
- Have a viewer as a security owner.
- Add the security reviewer to the review pool, or to a panel that already has one.
- See a secret's value: it is masked and never kept.
- Have medium or low findings fail the
entropix/securitystatus.
Troubleshooting
| Message | What to do |
|---|---|
| pick the agent that reviews for security | Choose an agent under Agent. |
| pick at least one trigger or sensitive path | Tick a condition under Runs when, or list a sensitive path. |
| name 1 to 20 security owners | Tick at least one owner, and no more than 20. |
| the default expiry is 7 to 365 days | Enter a number of days from 7 to 365. |
| a panel holds at most 3 agents: remove one first | A ticked repository's panel is full. Remove an agent from it on its Review panel page. |
| only security owners decide security findings: … | Ask one of the named owners to decide it. |
| pick an expiry date within a year (tomorrow to …) | Choose a date in that range. |
| F-3 needs a security owner's decision | Shown when a review on a blocking repository is sent back or approved with this security finding undecided. A security owner decides it first. |
| Security review reads watched repositories, and none is watched yet. | Watch a repository first: choose Choose repositories. |