safe-anything 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,8 +5,9 @@
5
5
  <h1 align="center">safe-anything</h1>
6
6
 
7
7
  <p align="center"><b>Find the holes before someone else does.</b><br>
8
- One command checks your code, your secrets, your mobile and cloud config, your dependencies,<br>
9
- and the AI agent setup that writes it all. Every finding comes with the line, the reason and the fix.</p>
8
+ One command finds XSS, SQL injection and other vulnerabilities in your code, leaked secrets,<br>
9
+ risky mobile and cloud config, vulnerable dependencies, and the AI agent setup that writes it all.<br>
10
+ Every finding comes with the line, the reason and the fix.</p>
10
11
 
11
12
  <p align="center">
12
13
  <img src="https://img.shields.io/github/languages/top/erkamyaman/safe-anything?logo=rust&label=Rust&color=CE422B" alt="Rust share of the code">
@@ -89,6 +90,12 @@ The full list is in [docs/rules.md](docs/rules.md).
89
90
  | **Config** | Docker (unpinned base, root, secrets in `ENV`, `ADD <url>`), GitHub Actions (`pull_request_target`, `write-all`, actions on `@main`, script injection from PR titles), privileged containers, `hostNetwork`, open Terraform ingress, public buckets, nginx autoindex, TLS 1.0/1.1 |
90
91
  | **Dependencies** | every locked version in `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `Cargo.lock`, `requirements*.txt`, `poetry.lock`, `uv.lock`, `go.mod`, `Gemfile.lock` and `composer.lock`, checked against [OSV.dev](https://osv.dev), with the nearest fixed version |
91
92
 
93
+ <p align="center">
94
+ <img src="docs/assets/nextjs-public-env.gif" alt="safe-anything on the with-mqtt-js example from the Next.js repository: 2 high findings, an MQTT password read from a NEXT_PUBLIC_ variable in app/page.tsx and environment.d.ts, which Next.js ships in the client bundle." width="820">
95
+ <br>
96
+ <sub>Of the 73 <a href="https://github.com/vercel/next.js/tree/canary/examples">Next.js examples</a> that come with env files, scanned one by one, the env checks flag one: a password behind <code>NEXT_PUBLIC_</code>.</sub>
97
+ </p>
98
+
92
99
  ## For AI agents
93
100
 
94
101
  safe-anything is also an MCP server, so your agent can scan before it commits, and before you
@@ -112,7 +119,7 @@ Tools: `scan` (path, offline, severity, include_tests) and `list_rules`. The ski
112
119
  ## In CI
113
120
 
114
121
  ```yaml
115
- - uses: erkamyaman/safe-anything@v1.0.0
122
+ - uses: erkamyaman/safe-anything@v1.0.2
116
123
  with:
117
124
  fail-on: high
118
125
  - uses: github/codeql-action/upload-sarif@v4
@@ -141,6 +148,12 @@ doing.
141
148
  | [rust-anything](https://github.com/erkamyaman/rust-anything) | 3,134 | 6 | `innerHTML` in GIF demo pages (5), an action on `@master` |
142
149
  | safe-anything itself | 53 | 0 | checked in CI on every push |
143
150
 
151
+ <p align="center">
152
+ <img src="docs/assets/express-clean.gif" alt="safe-anything on expressjs/express: no problems found, 216 files scanned in 0.03 s." width="820">
153
+ <br>
154
+ <sub>Quiet on good code: expressjs/express, 216 files, no findings.</sub>
155
+ </p>
156
+
144
157
  The noisiest rule is `code.xss-inner-html`: it fires on any HTML built from a variable, and most of
145
158
  those in local tooling are not reachable by an attacker. It stays on, because real XSS looks the
146
159
  same. Status per family: [docs/STATUS.md](docs/STATUS.md).
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safe-anything",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Find the holes before someone else does. One fast command scans code, secrets, mobile and cloud config, dependencies and AI agent setups. 100% Rust.",
5
5
  "keywords": [
6
6
  "security",