S.T.A.R. · PROTECT

Security Center Beta

Checks that find known risks before you share, publish or hand a project to an AI agent. Each report says what was checked, what was found, and what was not checked.

First module available; the others are planned and listed below with their state.

How your files are handled: the folder you choose is read by your browser, file by file, and never uploaded. The page opens no connection while it scans. The report shows where a secret is and a short fingerprint of it, never the secret itself.

Folder security check

Secrets (API keys, tokens, private keys, passwords in addresses, secret-looking assignments), files that should not be in a repository, and risky configuration of CI workflows, containers and installs.

What it looks for

Secrets

RuleSeverity
Private key
private-key
Critical
AWS access key ID
aws-access-key-id
High
AWS secret access key
aws-secret-access-key
Critical
GitHub token
github-token
High
GitHub fine-grained token
github-fine-grained-token
High
GitLab personal access token
gitlab-token
High
Slack token
slack-token
High
Slack incoming webhook
slack-webhook
Medium
Stripe live secret key
stripe-live-key
Critical
Stripe test secret key
stripe-test-key
Low
Google API key
google-api-key
High
OpenAI API key
openai-key
High
OpenAI project or service key
openai-project-key
High
Anthropic API key
anthropic-key
High
OpenRouter API key
openrouter-key
High
Groq API key
groq-key
High
xAI API key
xai-key
High
Hugging Face token
huggingface-token
High
Twilio API key
twilio-api-key
High
Twilio account SID
twilio-account-sid
Medium
Twilio auth token
twilio-auth-token
High
npm access token
npm-token
High
PyPI upload token
pypi-token
High
SendGrid API key
sendgrid-key
High
Telegram bot token
telegram-bot-token
Medium
Azure storage account key
azure-storage-key
Critical
JSON Web Token
jwt
Medium
Password inside a URL
url-credentials
High
Bearer token in an Authorization header
bearer-token
High
Secret encoded in base64
base64-encoded-secret
High
Secret-looking value assigned to a secret-looking name
generic-secret-assignment
Medium
Unquoted secret-looking value assigned to a secret-looking name (.env, YAML, INI)
generic-secret-unquoted
Medium

Files that should not be shared

RuleSeverity
Environment file with possible secrets
env-file
High
SSH private key file
ssh-private-key-file
Critical
Key store or certificate bundle
keystore-file
High
PEM or key file
pem-or-key-file
Medium
Credential configuration file
credential-config-file
High
Terraform state file
terraform-state
High
Database file in the repository
database-file
Low

Risky configuration

RuleSeverity
Workflow runs pull-request code with repository secrets
gha-pr-target-checkout
High
Untrusted event text inside a shell step
gha-script-injection
High
Workflow token with write access to everything
gha-write-all
Medium
Third-party action not pinned to a commit
gha-unpinned-action
Low
Script downloaded and run in one step
pipe-to-shell
Medium
Container image runs as root
docker-root-user
Low
Package runs a script when installed
npm-install-script
Low
Python requirement without a fixed version
python-unpinned-requirement
Info

How it was tested

  • Labelled corpus, written together with the rules (190 files, 5 generations): precision 1.000, recall 1.000. It shows that the rules do what they are written to do; it is not a measure of real-world performance.
  • Same corpus, lines holding a secret: this check finds 170/170 of them, the five patterns used until now in our Endurance agent find 45/170.
  • Folders never used to write the rules: 55,471 files of external open-source repositories gave 151 findings before the corrections; false alarms: 38 (precision 0.75). The corrections are listed in the failure observatory, under star_preflight, and that set is no longer independent.
  • A second set never seen, 3,915 files of another project of ours: 219 findings with rules 0.1.1; false alarms: 1. That false alarm was then corrected, so this set is no longer independent either. These two sets count false alarms only: how many secrets the rules miss on real repositories is not measured here.
  • Two engines, one in Python and one in the browser, read the same rules and must agree: 22 comparisons on the corpus and on real folders, all identical.
  • Mutation testing of the Python engine: 69 of 69 deliberate faults caught by the tests (score 1.000).

2026-10-27 · rules 0.1.2

Compared with gitleaks and detect-secrets

Two preregistered experiments, each on one synthetic project written for the benchmark by an agent that had not read our rules. Each corpus was scanned once, the three tools at their default settings (gitleaks 8.30.1, detect-secrets 1.5.0). The numbers describe these two corpora, not real repositories, and one corpus cannot be compared with the other.

EXP-0025, 2026-11-01: 430 secrets and 709 decoys in 200 files, rules 0.1.2
ToolFoundMissedFalse alarmsPrecisionRecallF1
Security Center296134170.9460.6880.797
gitleaks33595330.9100.7790.840
detect-secrets2711591820.5980.6300.614
EXP-0026, 2026-11-03: 418 secrets and 385 decoys in 204 files, rules 0.2.0
ToolFoundMissedFalse alarmsPrecisionRecallF1
Security Center4041460.9850.9670.976
gitleaks30111740.9870.7200.833
detect-secrets2731451540.6390.6530.646

The four gaps of the first experiment

Secret categoryFirst experiment, rules 0.1.2Second experiment, rules 0.2.0gitleaksdetect-secrets
Encoded in base640/3849/4945/4934/49
Bearer tokens0/1834/343/340/34
Twilio3/1528/2921/2927/29
Hugging Face5/1526/2626/2619/26
  • The rules and the second corpus were both written from the public formats of each provider, without seeing each other: a corpus built from public formats favours rules built from the same formats.
  • An independent reviewer checked the labels of the second corpus before the scan: 0 errors in 150 sampled labels, 0 forgotten secrets in 1,503 unlabelled lines; 39 labels in environment files were not opened by the reviewer.
  • Without the 31 labels the reviewer called debatable, F1 is 0.936 for the Security Center, 0.795 for gitleaks and 0.617 for detect-secrets.
  • Weakest category for the Security Center: generic secret assignments, 22 of 34 found.
  • In its git mode, gitleaks also reads the history (5 of 10 secrets that exist only there; the tables use folder scope for all three tools); the Security Center and detect-secrets read the files only. On this corpus the Security Center is as precise as gitleaks and finds more; it does not replace it.

From the command line

The same rules as a Python package with no dependencies, for a pre-commit hook or a CI job. It exits with 1 when a finding reaches the chosen severity. Not yet a public package: it is in the engineering repository and cannot be installed today, so the command below is what it will look like, not something to run now.

python -m star_preflight my-project --fail-on high

The Security Center, module by module

ModuleStateScope
Folder security checkBetasecrets, files, configuration; in the browser (the command-line version is not a public package yet)
Known vulnerabilities in dependenciesPlannedneeds a vulnerability database: offline snapshot, or online with your consent
Agent guardPlanneddeclared tools, allowed paths and hosts, human approval for sensitive actions, audit log
File airlockPlannedactive content in documents, with sanitisation only where its effect can be shown
Website checkPlannedheaders, certificates and exposed files, only for sites you own or are authorised to test
Backup and restorePlannedencrypted copies with hashes and a tested restore
Identity and accessPlannedroles, least privilege, revocation
Audit logPlannedappend-only with a hash chain; not the same as write-once storage
Post-quantum key exchangePrototypeinternal ML-KEM reference implementation, not a public package; checked against NIST vectors; not constant-time, not for real keys

Report a vulnerability

If you find a security problem in S.T.A.R. software or in this site, write to the contact address with the details; please do not publish it before we have answered. Contact →

results