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.
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
| Rule | Severity |
|---|---|
| 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
| Rule | Severity |
|---|---|
| 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
| Rule | Severity |
|---|---|
| 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.
| Tool | Found | Missed | False alarms | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| Security Center | 296 | 134 | 17 | 0.946 | 0.688 | 0.797 |
| gitleaks | 335 | 95 | 33 | 0.910 | 0.779 | 0.840 |
| detect-secrets | 271 | 159 | 182 | 0.598 | 0.630 | 0.614 |
| Tool | Found | Missed | False alarms | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| Security Center | 404 | 14 | 6 | 0.985 | 0.967 | 0.976 |
| gitleaks | 301 | 117 | 4 | 0.987 | 0.720 | 0.833 |
| detect-secrets | 273 | 145 | 154 | 0.639 | 0.653 | 0.646 |
The four gaps of the first experiment
| Secret category | First experiment, rules 0.1.2 | Second experiment, rules 0.2.0 | gitleaks | detect-secrets |
|---|---|---|---|---|
| Encoded in base64 | 0/38 | 49/49 | 45/49 | 34/49 |
| Bearer tokens | 0/18 | 34/34 | 3/34 | 0/34 |
| Twilio | 3/15 | 28/29 | 21/29 | 27/29 |
| Hugging Face | 5/15 | 26/26 | 26/26 | 19/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 highThe Security Center, module by module
| Module | State | Scope |
|---|---|---|
| Folder security check | Beta | secrets, files, configuration; in the browser (the command-line version is not a public package yet) |
| Known vulnerabilities in dependencies | Planned | needs a vulnerability database: offline snapshot, or online with your consent |
| Agent guard | Planned | declared tools, allowed paths and hosts, human approval for sensitive actions, audit log |
| File airlock | Planned | active content in documents, with sanitisation only where its effect can be shown |
| Website check | Planned | headers, certificates and exposed files, only for sites you own or are authorised to test |
| Backup and restore | Planned | encrypted copies with hashes and a tested restore |
| Identity and access | Planned | roles, least privilege, revocation |
| Audit log | Planned | append-only with a hash chain; not the same as write-once storage |
| Post-quantum key exchange | Prototype | internal 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 →
