capyshield 0.1.0__tar.gz → 0.1.2__tar.gz
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.
- {capyshield-0.1.0 → capyshield-0.1.2}/Cargo.lock +7 -7
- {capyshield-0.1.0 → capyshield-0.1.2}/Cargo.toml +7 -7
- {capyshield-0.1.0 → capyshield-0.1.2}/PKG-INFO +12 -12
- {capyshield-0.1.0 → capyshield-0.1.2}/README.md +11 -11
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-cli/README.md +11 -11
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-policy/Cargo.toml +2 -0
- capyshield-0.1.2/crates/capyshield-policy/README.md +16 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-proxy/Cargo.toml +2 -0
- capyshield-0.1.2/crates/capyshield-proxy/README.md +16 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-reach/Cargo.toml +2 -0
- capyshield-0.1.2/crates/capyshield-reach/README.md +16 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-scanner/Cargo.toml +2 -0
- capyshield-0.1.2/crates/capyshield-scanner/README.md +16 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-sync/Cargo.toml +2 -0
- capyshield-0.1.2/crates/capyshield-sync/README.md +16 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-vex/Cargo.toml +2 -0
- capyshield-0.1.2/crates/capyshield-vex/README.md +16 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/LICENSE +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-cli/Cargo.toml +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-cli/src/main.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-policy/src/lib.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-policy/src/presets.yaml +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-proxy/src/ca.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-proxy/src/lib.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-proxy/src/sni.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-reach/src/lib.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-scanner/src/lib.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-scanner/src/patterns.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-sync/src/lib.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/crates/capyshield-vex/src/lib.rs +0 -0
- {capyshield-0.1.0 → capyshield-0.1.2}/pyproject.toml +0 -0
|
@@ -160,7 +160,7 @@ checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c"
|
|
|
160
160
|
|
|
161
161
|
[[package]]
|
|
162
162
|
name = "capyshield"
|
|
163
|
-
version = "0.1.
|
|
163
|
+
version = "0.1.2"
|
|
164
164
|
dependencies = [
|
|
165
165
|
"capyshield-policy",
|
|
166
166
|
"capyshield-proxy",
|
|
@@ -178,7 +178,7 @@ dependencies = [
|
|
|
178
178
|
|
|
179
179
|
[[package]]
|
|
180
180
|
name = "capyshield-policy"
|
|
181
|
-
version = "0.1.
|
|
181
|
+
version = "0.1.2"
|
|
182
182
|
dependencies = [
|
|
183
183
|
"serde",
|
|
184
184
|
"serde_yaml",
|
|
@@ -186,7 +186,7 @@ dependencies = [
|
|
|
186
186
|
|
|
187
187
|
[[package]]
|
|
188
188
|
name = "capyshield-proxy"
|
|
189
|
-
version = "0.1.
|
|
189
|
+
version = "0.1.2"
|
|
190
190
|
dependencies = [
|
|
191
191
|
"bytes",
|
|
192
192
|
"capyshield-policy",
|
|
@@ -206,7 +206,7 @@ dependencies = [
|
|
|
206
206
|
|
|
207
207
|
[[package]]
|
|
208
208
|
name = "capyshield-reach"
|
|
209
|
-
version = "0.1.
|
|
209
|
+
version = "0.1.2"
|
|
210
210
|
dependencies = [
|
|
211
211
|
"globset",
|
|
212
212
|
"regex",
|
|
@@ -218,7 +218,7 @@ dependencies = [
|
|
|
218
218
|
|
|
219
219
|
[[package]]
|
|
220
220
|
name = "capyshield-scanner"
|
|
221
|
-
version = "0.1.
|
|
221
|
+
version = "0.1.2"
|
|
222
222
|
dependencies = [
|
|
223
223
|
"aho-corasick",
|
|
224
224
|
"base64 0.22.1",
|
|
@@ -229,7 +229,7 @@ dependencies = [
|
|
|
229
229
|
|
|
230
230
|
[[package]]
|
|
231
231
|
name = "capyshield-sync"
|
|
232
|
-
version = "0.1.
|
|
232
|
+
version = "0.1.2"
|
|
233
233
|
dependencies = [
|
|
234
234
|
"bytes",
|
|
235
235
|
"http-body-util",
|
|
@@ -244,7 +244,7 @@ dependencies = [
|
|
|
244
244
|
|
|
245
245
|
[[package]]
|
|
246
246
|
name = "capyshield-vex"
|
|
247
|
-
version = "0.1.
|
|
247
|
+
version = "0.1.2"
|
|
248
248
|
dependencies = [
|
|
249
249
|
"capyshield-reach",
|
|
250
250
|
"hex",
|
|
@@ -3,7 +3,7 @@ resolver = "2"
|
|
|
3
3
|
members = ["crates/*"]
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
|
-
version = "0.1.
|
|
6
|
+
version = "0.1.2"
|
|
7
7
|
authors = ["Agus Makmun <summon.agus@gmail.com>"]
|
|
8
8
|
edition = "2024"
|
|
9
9
|
license = "Apache-2.0"
|
|
@@ -11,12 +11,12 @@ repository = "https://github.com/capyshield-hq/capyshield"
|
|
|
11
11
|
homepage = "https://capyshield.com"
|
|
12
12
|
|
|
13
13
|
[workspace.dependencies]
|
|
14
|
-
capyshield-policy = { path = "crates/capyshield-policy", version = "0.1.
|
|
15
|
-
capyshield-scanner = { path = "crates/capyshield-scanner", version = "0.1.
|
|
16
|
-
capyshield-proxy = { path = "crates/capyshield-proxy", version = "0.1.
|
|
17
|
-
capyshield-reach = { path = "crates/capyshield-reach", version = "0.1.
|
|
18
|
-
capyshield-vex = { path = "crates/capyshield-vex", version = "0.1.
|
|
19
|
-
capyshield-sync = { path = "crates/capyshield-sync", version = "0.1.
|
|
14
|
+
capyshield-policy = { path = "crates/capyshield-policy", version = "0.1.2" }
|
|
15
|
+
capyshield-scanner = { path = "crates/capyshield-scanner", version = "0.1.2" }
|
|
16
|
+
capyshield-proxy = { path = "crates/capyshield-proxy", version = "0.1.2" }
|
|
17
|
+
capyshield-reach = { path = "crates/capyshield-reach", version = "0.1.2" }
|
|
18
|
+
capyshield-vex = { path = "crates/capyshield-vex", version = "0.1.2" }
|
|
19
|
+
capyshield-sync = { path = "crates/capyshield-sync", version = "0.1.2" }
|
|
20
20
|
|
|
21
21
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "io-util", "process", "signal", "time", "sync"] }
|
|
22
22
|
hyper = { version = "1", features = ["http1", "server", "client"] }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capyshield
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -24,7 +24,7 @@ Project-URL: Repository, https://github.com/capyshield-hq/capyshield
|
|
|
24
24
|
|
|
25
25
|
<div align="center">
|
|
26
26
|
|
|
27
|
-
<img src="docs/assets/logo.png" alt="CapyShield logo" width="110">
|
|
27
|
+
<img src="https://raw.githubusercontent.com/capyshield-hq/capyshield/main/docs/assets/logo.png" alt="CapyShield logo" width="110">
|
|
28
28
|
|
|
29
29
|
# CapyShield
|
|
30
30
|
|
|
@@ -37,11 +37,11 @@ Stop secrets from leaving your build, CI or AI agent, and cut CVE noise down to
|
|
|
37
37
|
[](https://crates.io/crates/capyshield)
|
|
38
38
|
[](https://pypi.org/project/capyshield/)
|
|
39
39
|
[](https://www.npmjs.com/package/capyshield)
|
|
40
|
-
[](LICENSE)
|
|
40
|
+
[](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE)
|
|
41
41
|
|
|
42
42
|
[Install](#installation) · [Quickstart](#quickstart) · [Egress guard](#egress-guard) · [VEX & reachability](#vex--reachability) · [Configuration](#configuration) · [CI & agents](#integrations)
|
|
43
43
|
|
|
44
|
-
<img src="docs/demo.gif" alt="capyshield watching npm install, then blocking an AWS secret exfiltration with exit code 2" width="860">
|
|
44
|
+
<img src="https://raw.githubusercontent.com/capyshield-hq/capyshield/main/docs/demo.gif" alt="capyshield watching npm install, then blocking an AWS secret exfiltration with exit code 2" width="860">
|
|
45
45
|
|
|
46
46
|
</div>
|
|
47
47
|
|
|
@@ -78,7 +78,7 @@ capyshield: 2 connection(s) to 1 host(s)
|
|
|
78
78
|
- [Privacy](#privacy)
|
|
79
79
|
- [Performance](#performance)
|
|
80
80
|
- [Security model & limitations](#security-model--limitations)
|
|
81
|
-
- [How it works (architecture & diagrams)](docs/how-it-works.md)
|
|
81
|
+
- [How it works (architecture & diagrams)](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md)
|
|
82
82
|
- [Contributing](#contributing)
|
|
83
83
|
|
|
84
84
|
## Installation
|
|
@@ -156,7 +156,7 @@ flowchart LR
|
|
|
156
156
|
proxy -.->|blocked → exit 2| cmd
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
How the proxy decides, step by step (CONNECT/SNI vs MITM, request inspection, the scanner pipeline, fail modes and the VEX triage tree), is described with diagrams in **[docs/how-it-works.md](docs/how-it-works.md)**.
|
|
159
|
+
How the proxy decides, step by step (CONNECT/SNI vs MITM, request inspection, the scanner pipeline, fail modes and the VEX triage tree), is described with diagrams in **[docs/how-it-works.md](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md)**.
|
|
160
160
|
|
|
161
161
|
### Detection
|
|
162
162
|
|
|
@@ -330,7 +330,7 @@ ENTRYPOINT ["capyshield", "guard", "--config", "/app/capyshield.yaml", "--"]
|
|
|
330
330
|
CMD ["node", "server.js"]
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
-
Complete examples are in [`examples/`](examples/). To see what each command outputs without running it, see [`examples/sample-output/`](examples/sample-output/): real terminal captures, reports, OpenVEX and a redacted sync payload.
|
|
333
|
+
Complete examples are in [`examples/`](https://github.com/capyshield-hq/capyshield/blob/main/examples/). To see what each command outputs without running it, see [`examples/sample-output/`](https://github.com/capyshield-hq/capyshield/blob/main/examples/sample-output/): real terminal captures, reports, OpenVEX and a redacted sync payload.
|
|
334
334
|
|
|
335
335
|
## Exit codes
|
|
336
336
|
|
|
@@ -379,10 +379,10 @@ Full inspection means the host policy check plus pattern, ENV, PII and entropy s
|
|
|
379
379
|
## Security model & limitations
|
|
380
380
|
|
|
381
381
|
- **The proxy is cooperative.** It reliably covers tools that honor proxy variables: npm, pip, uv, curl, git, most SDKs and agent runtimes. Code that deliberately opens raw sockets can bypass it. For a hard boundary, run the command in a container or network namespace whose only way out is the CapyShield proxy.
|
|
382
|
-
- **Reachability is static and package-level** ([details](docs/how-it-works.md#triage-decision)). It uses lockfiles and import statements, not call graphs. Transitive dependencies that aren't imported directly are reported as `under_investigation` rather than guessed. Record your own triage decisions as local VEX rules.
|
|
382
|
+
- **Reachability is static and package-level** ([details](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md#triage-decision)). It uses lockfiles and import statements, not call graphs. Transitive dependencies that aren't imported directly are reported as `under_investigation` rather than guessed. Record your own triage decisions as local VEX rules.
|
|
383
383
|
- **Payload inspection over HTTPS needs `mitm`.** In `sni` mode, the policy is enforced on hosts and byte counts only.
|
|
384
384
|
|
|
385
|
-
Report vulnerabilities privately as described in [SECURITY.md](SECURITY.md).
|
|
385
|
+
Report vulnerabilities privately as described in [SECURITY.md](https://github.com/capyshield-hq/capyshield/blob/main/SECURITY.md).
|
|
386
386
|
|
|
387
387
|
## Open source & CapyShield Cloud
|
|
388
388
|
|
|
@@ -396,11 +396,11 @@ This repository is the complete, standalone data plane, and is free under Apache
|
|
|
396
396
|
|
|
397
397
|
## Contributing
|
|
398
398
|
|
|
399
|
-
Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for the development setup, pre-commit hooks and how to add secret patterns.
|
|
399
|
+
Contributions are welcome. See [CONTRIBUTING.md](https://github.com/capyshield-hq/capyshield/blob/main/CONTRIBUTING.md) for the development setup, pre-commit hooks and how to add secret patterns.
|
|
400
400
|
|
|
401
401
|
### Regenerating the demo GIF
|
|
402
402
|
|
|
403
|
-
The terminal recording at the top of this README is scripted in [`docs/demo.tape`](docs/demo.tape) and rendered with [VHS](https://github.com/charmbracelet/vhs). To re-record it after the CLI output changes, run this from the repository root (it needs network access for npm and httpbin.org):
|
|
403
|
+
The terminal recording at the top of this README is scripted in [`docs/demo.tape`](https://github.com/capyshield-hq/capyshield/blob/main/docs/demo.tape) and rendered with [VHS](https://github.com/charmbracelet/vhs). To re-record it after the CLI output changes, run this from the repository root (it needs network access for npm and httpbin.org):
|
|
404
404
|
|
|
405
405
|
```bash
|
|
406
406
|
brew install vhs # or see the VHS README for Linux packages
|
|
@@ -421,5 +421,5 @@ crates/
|
|
|
421
421
|
|
|
422
422
|
## License
|
|
423
423
|
|
|
424
|
-
[Apache License 2.0](LICENSE)
|
|
424
|
+
[Apache License 2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE)
|
|
425
425
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="docs/assets/logo.png" alt="CapyShield logo" width="110">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/capyshield-hq/capyshield/main/docs/assets/logo.png" alt="CapyShield logo" width="110">
|
|
4
4
|
|
|
5
5
|
# CapyShield
|
|
6
6
|
|
|
@@ -13,11 +13,11 @@ Stop secrets from leaving your build, CI or AI agent, and cut CVE noise down to
|
|
|
13
13
|
[](https://crates.io/crates/capyshield)
|
|
14
14
|
[](https://pypi.org/project/capyshield/)
|
|
15
15
|
[](https://www.npmjs.com/package/capyshield)
|
|
16
|
-
[](LICENSE)
|
|
16
|
+
[](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE)
|
|
17
17
|
|
|
18
18
|
[Install](#installation) · [Quickstart](#quickstart) · [Egress guard](#egress-guard) · [VEX & reachability](#vex--reachability) · [Configuration](#configuration) · [CI & agents](#integrations)
|
|
19
19
|
|
|
20
|
-
<img src="docs/demo.gif" alt="capyshield watching npm install, then blocking an AWS secret exfiltration with exit code 2" width="860">
|
|
20
|
+
<img src="https://raw.githubusercontent.com/capyshield-hq/capyshield/main/docs/demo.gif" alt="capyshield watching npm install, then blocking an AWS secret exfiltration with exit code 2" width="860">
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -54,7 +54,7 @@ capyshield: 2 connection(s) to 1 host(s)
|
|
|
54
54
|
- [Privacy](#privacy)
|
|
55
55
|
- [Performance](#performance)
|
|
56
56
|
- [Security model & limitations](#security-model--limitations)
|
|
57
|
-
- [How it works (architecture & diagrams)](docs/how-it-works.md)
|
|
57
|
+
- [How it works (architecture & diagrams)](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md)
|
|
58
58
|
- [Contributing](#contributing)
|
|
59
59
|
|
|
60
60
|
## Installation
|
|
@@ -132,7 +132,7 @@ flowchart LR
|
|
|
132
132
|
proxy -.->|blocked → exit 2| cmd
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
How the proxy decides, step by step (CONNECT/SNI vs MITM, request inspection, the scanner pipeline, fail modes and the VEX triage tree), is described with diagrams in **[docs/how-it-works.md](docs/how-it-works.md)**.
|
|
135
|
+
How the proxy decides, step by step (CONNECT/SNI vs MITM, request inspection, the scanner pipeline, fail modes and the VEX triage tree), is described with diagrams in **[docs/how-it-works.md](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md)**.
|
|
136
136
|
|
|
137
137
|
### Detection
|
|
138
138
|
|
|
@@ -306,7 +306,7 @@ ENTRYPOINT ["capyshield", "guard", "--config", "/app/capyshield.yaml", "--"]
|
|
|
306
306
|
CMD ["node", "server.js"]
|
|
307
307
|
```
|
|
308
308
|
|
|
309
|
-
Complete examples are in [`examples/`](examples/). To see what each command outputs without running it, see [`examples/sample-output/`](examples/sample-output/): real terminal captures, reports, OpenVEX and a redacted sync payload.
|
|
309
|
+
Complete examples are in [`examples/`](https://github.com/capyshield-hq/capyshield/blob/main/examples/). To see what each command outputs without running it, see [`examples/sample-output/`](https://github.com/capyshield-hq/capyshield/blob/main/examples/sample-output/): real terminal captures, reports, OpenVEX and a redacted sync payload.
|
|
310
310
|
|
|
311
311
|
## Exit codes
|
|
312
312
|
|
|
@@ -355,10 +355,10 @@ Full inspection means the host policy check plus pattern, ENV, PII and entropy s
|
|
|
355
355
|
## Security model & limitations
|
|
356
356
|
|
|
357
357
|
- **The proxy is cooperative.** It reliably covers tools that honor proxy variables: npm, pip, uv, curl, git, most SDKs and agent runtimes. Code that deliberately opens raw sockets can bypass it. For a hard boundary, run the command in a container or network namespace whose only way out is the CapyShield proxy.
|
|
358
|
-
- **Reachability is static and package-level** ([details](docs/how-it-works.md#triage-decision)). It uses lockfiles and import statements, not call graphs. Transitive dependencies that aren't imported directly are reported as `under_investigation` rather than guessed. Record your own triage decisions as local VEX rules.
|
|
358
|
+
- **Reachability is static and package-level** ([details](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md#triage-decision)). It uses lockfiles and import statements, not call graphs. Transitive dependencies that aren't imported directly are reported as `under_investigation` rather than guessed. Record your own triage decisions as local VEX rules.
|
|
359
359
|
- **Payload inspection over HTTPS needs `mitm`.** In `sni` mode, the policy is enforced on hosts and byte counts only.
|
|
360
360
|
|
|
361
|
-
Report vulnerabilities privately as described in [SECURITY.md](SECURITY.md).
|
|
361
|
+
Report vulnerabilities privately as described in [SECURITY.md](https://github.com/capyshield-hq/capyshield/blob/main/SECURITY.md).
|
|
362
362
|
|
|
363
363
|
## Open source & CapyShield Cloud
|
|
364
364
|
|
|
@@ -372,11 +372,11 @@ This repository is the complete, standalone data plane, and is free under Apache
|
|
|
372
372
|
|
|
373
373
|
## Contributing
|
|
374
374
|
|
|
375
|
-
Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for the development setup, pre-commit hooks and how to add secret patterns.
|
|
375
|
+
Contributions are welcome. See [CONTRIBUTING.md](https://github.com/capyshield-hq/capyshield/blob/main/CONTRIBUTING.md) for the development setup, pre-commit hooks and how to add secret patterns.
|
|
376
376
|
|
|
377
377
|
### Regenerating the demo GIF
|
|
378
378
|
|
|
379
|
-
The terminal recording at the top of this README is scripted in [`docs/demo.tape`](docs/demo.tape) and rendered with [VHS](https://github.com/charmbracelet/vhs). To re-record it after the CLI output changes, run this from the repository root (it needs network access for npm and httpbin.org):
|
|
379
|
+
The terminal recording at the top of this README is scripted in [`docs/demo.tape`](https://github.com/capyshield-hq/capyshield/blob/main/docs/demo.tape) and rendered with [VHS](https://github.com/charmbracelet/vhs). To re-record it after the CLI output changes, run this from the repository root (it needs network access for npm and httpbin.org):
|
|
380
380
|
|
|
381
381
|
```bash
|
|
382
382
|
brew install vhs # or see the VHS README for Linux packages
|
|
@@ -397,4 +397,4 @@ crates/
|
|
|
397
397
|
|
|
398
398
|
## License
|
|
399
399
|
|
|
400
|
-
[Apache License 2.0](LICENSE)
|
|
400
|
+
[Apache License 2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="docs/assets/logo.png" alt="CapyShield logo" width="110">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/capyshield-hq/capyshield/main/docs/assets/logo.png" alt="CapyShield logo" width="110">
|
|
4
4
|
|
|
5
5
|
# CapyShield
|
|
6
6
|
|
|
@@ -13,11 +13,11 @@ Stop secrets from leaving your build, CI or AI agent, and cut CVE noise down to
|
|
|
13
13
|
[](https://crates.io/crates/capyshield)
|
|
14
14
|
[](https://pypi.org/project/capyshield/)
|
|
15
15
|
[](https://www.npmjs.com/package/capyshield)
|
|
16
|
-
[](LICENSE)
|
|
16
|
+
[](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE)
|
|
17
17
|
|
|
18
18
|
[Install](#installation) · [Quickstart](#quickstart) · [Egress guard](#egress-guard) · [VEX & reachability](#vex--reachability) · [Configuration](#configuration) · [CI & agents](#integrations)
|
|
19
19
|
|
|
20
|
-
<img src="docs/demo.gif" alt="capyshield watching npm install, then blocking an AWS secret exfiltration with exit code 2" width="860">
|
|
20
|
+
<img src="https://raw.githubusercontent.com/capyshield-hq/capyshield/main/docs/demo.gif" alt="capyshield watching npm install, then blocking an AWS secret exfiltration with exit code 2" width="860">
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -54,7 +54,7 @@ capyshield: 2 connection(s) to 1 host(s)
|
|
|
54
54
|
- [Privacy](#privacy)
|
|
55
55
|
- [Performance](#performance)
|
|
56
56
|
- [Security model & limitations](#security-model--limitations)
|
|
57
|
-
- [How it works (architecture & diagrams)](docs/how-it-works.md)
|
|
57
|
+
- [How it works (architecture & diagrams)](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md)
|
|
58
58
|
- [Contributing](#contributing)
|
|
59
59
|
|
|
60
60
|
## Installation
|
|
@@ -132,7 +132,7 @@ flowchart LR
|
|
|
132
132
|
proxy -.->|blocked → exit 2| cmd
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
How the proxy decides, step by step (CONNECT/SNI vs MITM, request inspection, the scanner pipeline, fail modes and the VEX triage tree), is described with diagrams in **[docs/how-it-works.md](docs/how-it-works.md)**.
|
|
135
|
+
How the proxy decides, step by step (CONNECT/SNI vs MITM, request inspection, the scanner pipeline, fail modes and the VEX triage tree), is described with diagrams in **[docs/how-it-works.md](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md)**.
|
|
136
136
|
|
|
137
137
|
### Detection
|
|
138
138
|
|
|
@@ -306,7 +306,7 @@ ENTRYPOINT ["capyshield", "guard", "--config", "/app/capyshield.yaml", "--"]
|
|
|
306
306
|
CMD ["node", "server.js"]
|
|
307
307
|
```
|
|
308
308
|
|
|
309
|
-
Complete examples are in [`examples/`](examples/). To see what each command outputs without running it, see [`examples/sample-output/`](examples/sample-output/): real terminal captures, reports, OpenVEX and a redacted sync payload.
|
|
309
|
+
Complete examples are in [`examples/`](https://github.com/capyshield-hq/capyshield/blob/main/examples/). To see what each command outputs without running it, see [`examples/sample-output/`](https://github.com/capyshield-hq/capyshield/blob/main/examples/sample-output/): real terminal captures, reports, OpenVEX and a redacted sync payload.
|
|
310
310
|
|
|
311
311
|
## Exit codes
|
|
312
312
|
|
|
@@ -355,10 +355,10 @@ Full inspection means the host policy check plus pattern, ENV, PII and entropy s
|
|
|
355
355
|
## Security model & limitations
|
|
356
356
|
|
|
357
357
|
- **The proxy is cooperative.** It reliably covers tools that honor proxy variables: npm, pip, uv, curl, git, most SDKs and agent runtimes. Code that deliberately opens raw sockets can bypass it. For a hard boundary, run the command in a container or network namespace whose only way out is the CapyShield proxy.
|
|
358
|
-
- **Reachability is static and package-level** ([details](docs/how-it-works.md#triage-decision)). It uses lockfiles and import statements, not call graphs. Transitive dependencies that aren't imported directly are reported as `under_investigation` rather than guessed. Record your own triage decisions as local VEX rules.
|
|
358
|
+
- **Reachability is static and package-level** ([details](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md#triage-decision)). It uses lockfiles and import statements, not call graphs. Transitive dependencies that aren't imported directly are reported as `under_investigation` rather than guessed. Record your own triage decisions as local VEX rules.
|
|
359
359
|
- **Payload inspection over HTTPS needs `mitm`.** In `sni` mode, the policy is enforced on hosts and byte counts only.
|
|
360
360
|
|
|
361
|
-
Report vulnerabilities privately as described in [SECURITY.md](SECURITY.md).
|
|
361
|
+
Report vulnerabilities privately as described in [SECURITY.md](https://github.com/capyshield-hq/capyshield/blob/main/SECURITY.md).
|
|
362
362
|
|
|
363
363
|
## Open source & CapyShield Cloud
|
|
364
364
|
|
|
@@ -372,11 +372,11 @@ This repository is the complete, standalone data plane, and is free under Apache
|
|
|
372
372
|
|
|
373
373
|
## Contributing
|
|
374
374
|
|
|
375
|
-
Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for the development setup, pre-commit hooks and how to add secret patterns.
|
|
375
|
+
Contributions are welcome. See [CONTRIBUTING.md](https://github.com/capyshield-hq/capyshield/blob/main/CONTRIBUTING.md) for the development setup, pre-commit hooks and how to add secret patterns.
|
|
376
376
|
|
|
377
377
|
### Regenerating the demo GIF
|
|
378
378
|
|
|
379
|
-
The terminal recording at the top of this README is scripted in [`docs/demo.tape`](docs/demo.tape) and rendered with [VHS](https://github.com/charmbracelet/vhs). To re-record it after the CLI output changes, run this from the repository root (it needs network access for npm and httpbin.org):
|
|
379
|
+
The terminal recording at the top of this README is scripted in [`docs/demo.tape`](https://github.com/capyshield-hq/capyshield/blob/main/docs/demo.tape) and rendered with [VHS](https://github.com/charmbracelet/vhs). To re-record it after the CLI output changes, run this from the repository root (it needs network access for npm and httpbin.org):
|
|
380
380
|
|
|
381
381
|
```bash
|
|
382
382
|
brew install vhs # or see the VHS README for Linux packages
|
|
@@ -397,4 +397,4 @@ crates/
|
|
|
397
397
|
|
|
398
398
|
## License
|
|
399
399
|
|
|
400
|
-
[Apache License 2.0](LICENSE)
|
|
400
|
+
[Apache License 2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# capyshield-policy
|
|
2
|
+
|
|
3
|
+
capyshield.yaml model, parser and validator, plus host presets.
|
|
4
|
+
|
|
5
|
+
This is an internal crate of [CapyShield](https://github.com/capyshield-hq/capyshield), a deterministic,
|
|
6
|
+
zero-trust egress guard and local VEX/reachability engine. Its API is not stable and may change in any
|
|
7
|
+
release. To use CapyShield, install the CLI instead:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cargo install capyshield --locked # or: uvx capyshield, npx capyshield, brew, docker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
See the [README](https://github.com/capyshield-hq/capyshield#readme) and
|
|
14
|
+
[how it works](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md).
|
|
15
|
+
|
|
16
|
+
Licensed under [Apache-2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# capyshield-proxy
|
|
2
|
+
|
|
3
|
+
Local HTTP/HTTPS egress proxy with SNI and TLS MITM inspection.
|
|
4
|
+
|
|
5
|
+
This is an internal crate of [CapyShield](https://github.com/capyshield-hq/capyshield), a deterministic,
|
|
6
|
+
zero-trust egress guard and local VEX/reachability engine. Its API is not stable and may change in any
|
|
7
|
+
release. To use CapyShield, install the CLI instead:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cargo install capyshield --locked # or: uvx capyshield, npx capyshield, brew, docker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
See the [README](https://github.com/capyshield-hq/capyshield#readme) and
|
|
14
|
+
[how it works](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md).
|
|
15
|
+
|
|
16
|
+
Licensed under [Apache-2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# capyshield-reach
|
|
2
|
+
|
|
3
|
+
Lockfile and import-graph reachability for Node.js and Python.
|
|
4
|
+
|
|
5
|
+
This is an internal crate of [CapyShield](https://github.com/capyshield-hq/capyshield), a deterministic,
|
|
6
|
+
zero-trust egress guard and local VEX/reachability engine. Its API is not stable and may change in any
|
|
7
|
+
release. To use CapyShield, install the CLI instead:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cargo install capyshield --locked # or: uvx capyshield, npx capyshield, brew, docker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
See the [README](https://github.com/capyshield-hq/capyshield#readme) and
|
|
14
|
+
[how it works](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md).
|
|
15
|
+
|
|
16
|
+
Licensed under [Apache-2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# capyshield-scanner
|
|
2
|
+
|
|
3
|
+
Deterministic secret, ENV-fingerprint, entropy and PII scanner.
|
|
4
|
+
|
|
5
|
+
This is an internal crate of [CapyShield](https://github.com/capyshield-hq/capyshield), a deterministic,
|
|
6
|
+
zero-trust egress guard and local VEX/reachability engine. Its API is not stable and may change in any
|
|
7
|
+
release. To use CapyShield, install the CLI instead:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cargo install capyshield --locked # or: uvx capyshield, npx capyshield, brew, docker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
See the [README](https://github.com/capyshield-hq/capyshield#readme) and
|
|
14
|
+
[how it works](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md).
|
|
15
|
+
|
|
16
|
+
Licensed under [Apache-2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# capyshield-sync
|
|
2
|
+
|
|
3
|
+
Optional CapyShield Cloud client (opt-in, dry-run and path redaction).
|
|
4
|
+
|
|
5
|
+
This is an internal crate of [CapyShield](https://github.com/capyshield-hq/capyshield), a deterministic,
|
|
6
|
+
zero-trust egress guard and local VEX/reachability engine. Its API is not stable and may change in any
|
|
7
|
+
release. To use CapyShield, install the CLI instead:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cargo install capyshield --locked # or: uvx capyshield, npx capyshield, brew, docker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
See the [README](https://github.com/capyshield-hq/capyshield#readme) and
|
|
14
|
+
[how it works](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md).
|
|
15
|
+
|
|
16
|
+
Licensed under [Apache-2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# capyshield-vex
|
|
2
|
+
|
|
3
|
+
Trivy/Grype ingestion, local VEX rules and OpenVEX v0.2 output.
|
|
4
|
+
|
|
5
|
+
This is an internal crate of [CapyShield](https://github.com/capyshield-hq/capyshield), a deterministic,
|
|
6
|
+
zero-trust egress guard and local VEX/reachability engine. Its API is not stable and may change in any
|
|
7
|
+
release. To use CapyShield, install the CLI instead:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cargo install capyshield --locked # or: uvx capyshield, npx capyshield, brew, docker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
See the [README](https://github.com/capyshield-hq/capyshield#readme) and
|
|
14
|
+
[how it works](https://github.com/capyshield-hq/capyshield/blob/main/docs/how-it-works.md).
|
|
15
|
+
|
|
16
|
+
Licensed under [Apache-2.0](https://github.com/capyshield-hq/capyshield/blob/main/LICENSE).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|