Skip to content

Find the holes before someone else does. A fast, 100% Rust vulnerability scanner: XSS, SQL injection, leaked secrets, dependency CVEs and AI agent setups.

32.5 KB
Raw Blame

Rules

Every rule safe-anything checks, generated from safe-anything --list-rules --json. Each links to the OWASP page that explains the problem and the fix.

Code (25)

Rule Severity CWE OWASP What it means
code.xss-inner-html medium CWE-79 A03:2021 Injection HTML is written from a variable; if it holds user input, scripts run in the page (XSS).
code.xss-document-write medium CWE-79 A03:2021 Injection document.write puts raw HTML into the page; with user input this is XSS.
code.xss-dangerously-set-inner-html medium CWE-79 A03:2021 Injection dangerouslySetInnerHTML renders raw HTML; with user content this is XSS.
code.xss-v-html medium CWE-79 A03:2021 Injection Raw HTML is rendered from a variable; with user content this is XSS.
code.xss-reflected medium CWE-79 A03:2021 Injection Request input is printed into the page without escaping (reflected XSS).
code.xss-raw-html medium CWE-79 A03:2021 Injection A value is marked as safe HTML, so Rails will not escape it (XSS if it holds user input).
code.eval high CWE-95, child of CWE-94 A03:2021 Injection Code is evaluated from a string at run time; if any part comes from input, an attacker can run code.
code.command-injection high CWE-78 A03:2021 Injection A shell command is built from variables, so input can run other commands (command injection).
code.sql-injection high CWE-89 A03:2021 Injection A SQL query is built from variables by string formatting, so input can change the query (SQL injection).
code.path-traversal high CWE-22 A01:2021 Broken Access Control A file path comes straight from the request, so ../ can reach any file on the server (path traversal).
code.ssrf high CWE-918 A10:2021 Server-Side Request Forgery The server fetches a URL taken from the request, so users can reach internal services (SSRF).
code.open-redirect medium CWE-601 A01:2021 Broken Access Control The redirect target is taken from the request, so a crafted link can send users to any site from your domain (open redirect).
code.tls-verify-off medium CWE-295 A02:2021 Cryptographic Failures TLS certificate checks are turned off, so anyone on the network can read or change the traffic.
code.weak-hash low CWE-328 A02:2021 Cryptographic Failures MD5 and SHA-1 are broken for security use (collisions; too fast for passwords).
code.weak-cipher medium CWE-327 A02:2021 Cryptographic Failures A weak cipher or ECB mode is used; ECB leaks patterns and DES/RC4 are broken.
code.insecure-cookie low CWE-614 A05:2021 Security Misconfiguration A cookie is set without HttpOnly or Secure, so scripts or plain HTTP can read it.
code.jwt-none high CWE-347 A07:2021 Identification and Authentication Failures JWT signatures are not checked, so anyone can forge a token.
code.cors-wildcard low CWE-942 A05:2021 Security Misconfiguration CORS allows every origin. Fine for public data; risky for anything behind a login.
code.insecure-random medium CWE-338, child of CWE-330 A02:2021 Cryptographic Failures A secret value is made with a non-cryptographic random generator, which can be predicted.
code.debug-enabled medium CWE-489 A05:2021 Security Misconfiguration The app runs in debug mode; the debugger can run code and leaks internals.
code.template-injection high CWE-1336 A03:2021 Injection A template is built from request input, so users can run code in the template engine (SSTI).
code.unsafe-deserialization high CWE-502 A08:2021 Software and Data Integrity Failures Untrusted data is deserialized with a format that can run code or build arbitrary objects.
code.file-inclusion critical CWE-22 A01:2021 Broken Access Control A file to include comes from the request, so attackers can load other files or remote code.
code.sql-grant-all medium CWE-250 A01:2021 Broken Access Control A database user gets every privilege on every database.
code.sql-plaintext-password medium CWE-798 A07:2021 Identification and Authentication Failures A database password is written in a SQL file.

Secrets (47)

Rule Severity CWE OWASP What it means
secret.aws-access-key critical CWE-798 A07:2021 Identification and Authentication Failures An AWS access key id is written in the file.
secret.aws-secret-key critical CWE-798 A07:2021 Identification and Authentication Failures An AWS secret access key is written in the file.
secret.github-token critical CWE-798 A07:2021 Identification and Authentication Failures A GitHub token is written in the file.
secret.gitlab-token critical CWE-798 A07:2021 Identification and Authentication Failures A GitLab token is written in the file.
secret.slack-token high CWE-798 A07:2021 Identification and Authentication Failures A Slack token is written in the file.
secret.slack-webhook high CWE-798 A07:2021 Identification and Authentication Failures A Slack incoming webhook URL is written in the file.
secret.discord-webhook high CWE-798 A07:2021 Identification and Authentication Failures A Discord webhook URL is written in the file.
secret.stripe-live-key critical CWE-798 A07:2021 Identification and Authentication Failures A live Stripe secret key is written in the file.
secret.shopify-token critical CWE-798 A07:2021 Identification and Authentication Failures A Shopify access token is written in the file.
secret.npm-token critical CWE-798 A07:2021 Identification and Authentication Failures An npm access token is written in the file.
secret.pulumi-token critical CWE-798 A07:2021 Identification and Authentication Failures A Pulumi access token is written in the file.
secret.pypi-token critical CWE-798 A07:2021 Identification and Authentication Failures A PyPI upload token is written in the file.
secret.rubygems-token critical CWE-798 A07:2021 Identification and Authentication Failures A RubyGems API key is written in the file.
secret.dockerhub-token critical CWE-798 A07:2021 Identification and Authentication Failures A Docker Hub personal access token is written in the file.
secret.huggingface-token critical CWE-798 A07:2021 Identification and Authentication Failures A Hugging Face access token is written in the file.
secret.anthropic-key critical CWE-798 A07:2021 Identification and Authentication Failures An Anthropic API key is written in the file.
secret.openai-key critical CWE-798 A07:2021 Identification and Authentication Failures An OpenAI API key is written in the file.
secret.groq-key critical CWE-798 A07:2021 Identification and Authentication Failures A Groq API key is written in the file.
secret.perplexity-key critical CWE-798 A07:2021 Identification and Authentication Failures A Perplexity API key is written in the file.
secret.openrouter-key critical CWE-798 A07:2021 Identification and Authentication Failures An OpenRouter API key is written in the file.
secret.google-api-key high CWE-798 A07:2021 Identification and Authentication Failures A Google API key is written in the file.
secret.google-oauth-secret high CWE-798 A07:2021 Identification and Authentication Failures A Google OAuth client secret is written in the file.
secret.notion-token critical CWE-798 A07:2021 Identification and Authentication Failures A Notion integration token is written in the file.
secret.mailgun-key critical CWE-798 A07:2021 Identification and Authentication Failures A Mailgun API key is written in the file.
secret.sendgrid-key critical CWE-798 A07:2021 Identification and Authentication Failures A SendGrid API key is written in the file.
secret.telegram-bot-token high CWE-798 A07:2021 Identification and Authentication Failures A Telegram bot token is written in the file.
secret.digitalocean-token critical CWE-798 A07:2021 Identification and Authentication Failures A DigitalOcean token is written in the file.
secret.heroku-key critical CWE-798 A07:2021 Identification and Authentication Failures A Heroku API key is written in the file.
secret.flyio-token critical CWE-798 A07:2021 Identification and Authentication Failures A Fly.io access token is written in the file.
secret.databricks-token critical CWE-798 A07:2021 Identification and Authentication Failures A Databricks personal access token is written in the file.
secret.twilio-api-key critical CWE-798 A07:2021 Identification and Authentication Failures A Twilio API key is written in the file.
secret.linear-api-key critical CWE-798 A07:2021 Identification and Authentication Failures A Linear API key is written in the file.
secret.prefect-api-key critical CWE-798 A07:2021 Identification and Authentication Failures A Prefect API key is written in the file.
secret.postman-api-key critical CWE-798 A07:2021 Identification and Authentication Failures A Postman API key is written in the file.
secret.sentry-token critical CWE-798 A07:2021 Identification and Authentication Failures A Sentry user auth token is written in the file.
secret.newrelic-key critical CWE-798 A07:2021 Identification and Authentication Failures A New Relic user API key is written in the file.
secret.supabase-token critical CWE-798 A07:2021 Identification and Authentication Failures A Supabase access token is written in the file.
secret.grafana-token critical CWE-798 A07:2021 Identification and Authentication Failures A Grafana service account token is written in the file.
secret.doppler-token critical CWE-798 A07:2021 Identification and Authentication Failures A Doppler personal token is written in the file.
secret.age-key critical CWE-798 A07:2021 Identification and Authentication Failures An age private key is written in the file.
secret.private-key critical CWE-321 A02:2021 Cryptographic Failures A private key is stored in the repository.
secret.hardcoded-password high CWE-798 A07:2021 Identification and Authentication Failures A password or secret is written in the code.
secret.url-credentials high CWE-798 A07:2021 Identification and Authentication Failures A connection string carries a username and password.
secret.env-file high CWE-798 A07:2021 Identification and Authentication Failures A .env file in the repository holds a secret value.
secret.env-example-value high CWE-798 A07:2021 Identification and Authentication Failures An example env file holds what looks like a real secret value; example files are meant to be committed and shared.
secret.public-env-secret high CWE-200 A05:2021 Security Misconfiguration A secret is given a public env prefix, so the build ships it inside the client bundle where anyone can read it.
secret.env-not-ignored medium CWE-538 A05:2021 Security Misconfiguration The project has env files but .gitignore does not exclude .env, so real secrets are one git add away from the repository.

Agent setups (10)

Rule Severity CWE OWASP What it means
agent.bypass-permissions high CWE-250 LLM06:2025 Excessive Agency The agent is set to run every action without asking, so one bad instruction can do anything on this machine.
agent.mcp-auto-approve high CWE-829 LLM06:2025 Excessive Agency Claude Code starts every MCP server in the project's .mcp.json without asking about each one, so a cloned repository's servers can run commands on this machine.
agent.remote-script high CWE-494 LLM03:2025 Supply Chain A script is downloaded and run straight from the internet; whoever controls that URL controls this machine.
agent.prompt-injection medium CWE-1427 LLM01:2025 Prompt Injection Instruction text tells the agent to override its rules or hide actions from the user (prompt injection).
agent.sensitive-file-access high CWE-200 LLM02:2025 Sensitive Information Disclosure Agent instructions read credential files such as SSH keys or cloud credentials.
agent.hidden-unicode high CWE-1427 LLM01:2025 Prompt Injection Invisible Unicode characters are in agent instructions; they can hide text the agent reads but you don't see.
agent.unrestricted-shell high CWE-250 LLM06:2025 Excessive Agency Every shell command is pre-approved, so the agent can run anything without asking.
agent.mcp-unpinned medium CWE-1357 LLM03:2025 Supply Chain An MCP server is started from a package or image with no pinned version.
agent.mcp-plaintext-secret high CWE-798 LLM02:2025 Sensitive Information Disclosure An MCP server's token or key is written in plain text in the config.
agent.mcp-insecure-url high CWE-319 A02:2021 Cryptographic Failures A remote MCP server is reached over plain HTTP or WebSocket.

Mobile (9)

Rule Severity CWE OWASP What it means
mobile.android-debuggable high CWE-489 MASVS-RESILIENCE The app is debuggable; anyone with the APK can attach a debugger and read its memory.
mobile.android-allow-backup low CWE-922 MASVS-STORAGE App data can be copied off the device with adb backup.
mobile.android-cleartext medium CWE-319 MASVS-NETWORK Plain HTTP traffic is allowed, so data can be read or changed on the network.
mobile.android-exported-provider high CWE-926 MASVS-PLATFORM A content provider is exported with no permission, so any app on the device can read its data.
mobile.webview-js-bridge medium CWE-749 MASVS-PLATFORM Native methods are exposed to JavaScript in a WebView; any page it loads can call them.
mobile.webview-file-access high CWE-749 MASVS-PLATFORM A WebView lets file:// pages read other files and origins.
mobile.world-readable high CWE-922 MASVS-STORAGE A file or preferences store is readable or writable by every app on the device.
mobile.ios-ats-disabled high CWE-319 MASVS-NETWORK App Transport Security is off, so the app may load anything over plain HTTP.
mobile.insecure-storage medium CWE-922 MASVS-STORAGE A token or password is saved in plain storage that other code, backups or XSS can read.

Config (18)

Rule Severity CWE OWASP What it means
config.remote-script medium CWE-494 A08:2021 Software and Data Integrity Failures A script is downloaded and piped straight into a shell, with no pinning or checksum.
config.docker-unpinned-image low CWE-1357 A06:2021 Vulnerable and Outdated Components The base image has no version tag (or uses latest), so builds change without notice.
config.docker-secret-env high CWE-798 A05:2021 Security Misconfiguration A secret is baked into the image; anyone who pulls it can read it from the layers.
config.docker-add-url low CWE-494 A08:2021 Software and Data Integrity Failures ADD downloads a remote file at build time without checking it.
config.docker-root-user medium CWE-250 A05:2021 Security Misconfiguration The container runs as root, so a break-out starts with full privileges.
config.gha-pull-request-target medium CWE-829 A08:2021 Software and Data Integrity Failures pull_request_target runs with repository secrets on code from forks; checking out the PR head here is a known takeover path.
config.gha-write-all medium CWE-829 A08:2021 Software and Data Integrity Failures The workflow token can write to everything in the repository.
config.gha-unpinned-action medium CWE-829 A08:2021 Software and Data Integrity Failures A third-party action runs from a moving branch, so any push to it runs in your CI with your secrets.
config.gha-script-injection high CWE-78 A03:2021 Injection Text an outsider controls (a PR title, issue body, branch name) is pasted into the workflow, so it can run commands.
config.privileged-container high CWE-250 A05:2021 Security Misconfiguration A container runs privileged (or may gain privileges), which gives it near-root access to the host.
config.k8s-host-access high CWE-250 A05:2021 Security Misconfiguration The pod shares the host's network, process or IPC namespace.
config.tf-open-ingress medium CWE-284 A01:2021 Broken Access Control A network rule is open to the whole internet.
config.tf-public-bucket high CWE-284 A01:2021 Broken Access Control A storage bucket is public.
config.tf-public-access-block medium CWE-284 A01:2021 Broken Access Control An S3 public access block is turned off, so a bucket policy can make the bucket (or every bucket in the account) public.
config.tf-public-database high CWE-284 A01:2021 Broken Access Control A database gets a public IP address, so only its security group stands between it and the internet.
config.tf-unencrypted-storage medium CWE-311 A02:2021 Cryptographic Failures A database's storage is not encrypted at rest, so its snapshots and backups are not encrypted either.
config.nginx-autoindex low CWE-548 A05:2021 Security Misconfiguration Directory listing is on, so every file in the folder can be browsed.
config.weak-tls-version medium CWE-326 A02:2021 Cryptographic Failures Old TLS or SSL versions are enabled; they have known attacks.

Dependencies (1)

Rule Severity CWE OWASP What it means
dependency.known-vulnerability high CWE-1395 A06:2021 Vulnerable and Outdated Components A locked dependency version has a published advisory (OSV.dev).