leakkill 0.7.0__tar.gz → 0.7.1__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.
- {leakkill-0.7.0/src/leakkill.egg-info → leakkill-0.7.1}/PKG-INFO +6 -4
- {leakkill-0.7.0 → leakkill-0.7.1}/README.md +5 -3
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/__init__.py +1 -1
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/cli.py +18 -0
- {leakkill-0.7.0 → leakkill-0.7.1/src/leakkill.egg-info}/PKG-INFO +6 -4
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_cli.py +10 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/LICENSE +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/THIRD_PARTY_NOTICES.md +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/pyproject.toml +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/setup.cfg +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/__main__.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/agents.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/aws.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/baseline.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/gitleaks_rules.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/guard.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/providers.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/report.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/sarif.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill/scanner.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill.egg-info/SOURCES.txt +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill.egg-info/dependency_links.txt +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill.egg-info/entry_points.txt +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/src/leakkill.egg-info/top_level.txt +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_agents.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_coverage_gaps.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_fuzz.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_guard.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_guard_agents.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_import_gitleaks.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_providers.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_redos.py +0 -0
- {leakkill-0.7.0 → leakkill-0.7.1}/tests/test_scanner.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: leakkill
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Find leaked secrets, check if they're live, revoke them in one command, and keep them out of AI coding agents
|
|
5
5
|
Author-email: Ayush <andymylove24@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -144,10 +144,12 @@ End to end on Windows with real, throwaway credentials:
|
|
|
144
144
|
| Slack webhook | LIVE | (died with the app) | DEAD |
|
|
145
145
|
| Stripe test key | LIVE, correct account, "test mode" | manual roll in dashboard | |
|
|
146
146
|
| Hugging Face token | LIVE, correct user and token role | manual delete | |
|
|
147
|
+
| Postman API key | LIVE, correct username | manual delete (page linked) | DEAD |
|
|
148
|
+
| Netlify access token | LIVE, correct account email | manual delete (page linked) | DEAD |
|
|
147
149
|
|
|
148
150
|
Against the real AWS, GitLab, Anthropic and npm APIs, invalid keys are correctly reported DEAD.
|
|
149
151
|
Providers not yet tested with a live key (OpenAI, OpenRouter, Groq, Replicate, DigitalOcean,
|
|
150
|
-
SendGrid, Telegram, and the
|
|
152
|
+
SendGrid, Telegram, and the other 13 added in 0.7) are covered by tests using simulated API responses.
|
|
151
153
|
|
|
152
154
|
### Accuracy (independent dataset)
|
|
153
155
|
|
|
@@ -171,7 +173,7 @@ leakkill somewhat; false alarms on four clean repositories (requests, flask, dja
|
|
|
171
173
|
|
|
172
174
|
### How it's tested
|
|
173
175
|
|
|
174
|
-
-
|
|
176
|
+
- 155 tests on Linux, macOS and Windows with Python 3.9 and 3.13; CI fails below 88% branch coverage (currently 93%).
|
|
175
177
|
- Property-based fuzz tests: the scanner never crashes on random input, never prints a raw secret, finds a
|
|
176
178
|
planted token in any surrounding text, and gives the same answer scanning a whole file or line by line.
|
|
177
179
|
(Fuzzing found two real bugs before release: a guard crash and a slow-input case, both fixed.)
|
|
@@ -323,7 +325,7 @@ baseline doesn't make it safe: revoke real keys first.
|
|
|
323
325
|
# .pre-commit-config.yaml
|
|
324
326
|
repos:
|
|
325
327
|
- repo: https://github.com/ayushanand27/leakkill
|
|
326
|
-
rev: v0.7.
|
|
328
|
+
rev: v0.7.1
|
|
327
329
|
hooks:
|
|
328
330
|
- id: leakkill
|
|
329
331
|
```
|
|
@@ -124,10 +124,12 @@ End to end on Windows with real, throwaway credentials:
|
|
|
124
124
|
| Slack webhook | LIVE | (died with the app) | DEAD |
|
|
125
125
|
| Stripe test key | LIVE, correct account, "test mode" | manual roll in dashboard | |
|
|
126
126
|
| Hugging Face token | LIVE, correct user and token role | manual delete | |
|
|
127
|
+
| Postman API key | LIVE, correct username | manual delete (page linked) | DEAD |
|
|
128
|
+
| Netlify access token | LIVE, correct account email | manual delete (page linked) | DEAD |
|
|
127
129
|
|
|
128
130
|
Against the real AWS, GitLab, Anthropic and npm APIs, invalid keys are correctly reported DEAD.
|
|
129
131
|
Providers not yet tested with a live key (OpenAI, OpenRouter, Groq, Replicate, DigitalOcean,
|
|
130
|
-
SendGrid, Telegram, and the
|
|
132
|
+
SendGrid, Telegram, and the other 13 added in 0.7) are covered by tests using simulated API responses.
|
|
131
133
|
|
|
132
134
|
### Accuracy (independent dataset)
|
|
133
135
|
|
|
@@ -151,7 +153,7 @@ leakkill somewhat; false alarms on four clean repositories (requests, flask, dja
|
|
|
151
153
|
|
|
152
154
|
### How it's tested
|
|
153
155
|
|
|
154
|
-
-
|
|
156
|
+
- 155 tests on Linux, macOS and Windows with Python 3.9 and 3.13; CI fails below 88% branch coverage (currently 93%).
|
|
155
157
|
- Property-based fuzz tests: the scanner never crashes on random input, never prints a raw secret, finds a
|
|
156
158
|
planted token in any surrounding text, and gives the same answer scanning a whole file or line by line.
|
|
157
159
|
(Fuzzing found two real bugs before release: a guard crash and a slow-input case, both fixed.)
|
|
@@ -303,7 +305,7 @@ baseline doesn't make it safe: revoke real keys first.
|
|
|
303
305
|
# .pre-commit-config.yaml
|
|
304
306
|
repos:
|
|
305
307
|
- repo: https://github.com/ayushanand27/leakkill
|
|
306
|
-
rev: v0.7.
|
|
308
|
+
rev: v0.7.1
|
|
307
309
|
hooks:
|
|
308
310
|
- id: leakkill
|
|
309
311
|
```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""leakkill: find leaked secrets, check if they're live, revoke them, and guard AI coding agents."""
|
|
2
|
-
__version__ = "0.7.
|
|
2
|
+
__version__ = "0.7.1"
|
|
@@ -106,6 +106,21 @@ def summary(items):
|
|
|
106
106
|
return s + "."
|
|
107
107
|
|
|
108
108
|
|
|
109
|
+
def next_step(items, args, verified):
|
|
110
|
+
"""One line telling a newcomer what to run next (text output only)."""
|
|
111
|
+
if not items:
|
|
112
|
+
return ""
|
|
113
|
+
flags = "".join(f" --{f}" for f in ("agents", "history", "staged") if getattr(args, f, False))
|
|
114
|
+
if not verified:
|
|
115
|
+
return (f"Next: `leakkill verify{flags}` checks which still work and whose they are. "
|
|
116
|
+
"False alarm? Add `leakkill:ignore` to that line.")
|
|
117
|
+
live = sum(1 for i in items if i.result and i.result.status == providers.LIVE)
|
|
118
|
+
if live:
|
|
119
|
+
return (f"Next: `leakkill revoke{flags}` shows how to kill the {live} live key(s) (add --yes to do it); "
|
|
120
|
+
f"`leakkill report{flags}` writes the cleanup steps.")
|
|
121
|
+
return f"None are live, but still remove them from the code: `leakkill report{flags}` lists the steps."
|
|
122
|
+
|
|
123
|
+
|
|
109
124
|
def _target(args):
|
|
110
125
|
return "AI agent files" if args.agents else "git history" if args.history else "staged changes" if args.staged else " ".join(args.paths or ["."])
|
|
111
126
|
|
|
@@ -124,6 +139,9 @@ def cmd_scan(args, verify=False):
|
|
|
124
139
|
else:
|
|
125
140
|
print_items(items)
|
|
126
141
|
print(summary(items))
|
|
142
|
+
hint = next_step(items, args, verify)
|
|
143
|
+
if hint:
|
|
144
|
+
print(hint)
|
|
127
145
|
if args.agents and items:
|
|
128
146
|
print("\n" + agents.ADVICE)
|
|
129
147
|
if args.report:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: leakkill
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Find leaked secrets, check if they're live, revoke them in one command, and keep them out of AI coding agents
|
|
5
5
|
Author-email: Ayush <andymylove24@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -144,10 +144,12 @@ End to end on Windows with real, throwaway credentials:
|
|
|
144
144
|
| Slack webhook | LIVE | (died with the app) | DEAD |
|
|
145
145
|
| Stripe test key | LIVE, correct account, "test mode" | manual roll in dashboard | |
|
|
146
146
|
| Hugging Face token | LIVE, correct user and token role | manual delete | |
|
|
147
|
+
| Postman API key | LIVE, correct username | manual delete (page linked) | DEAD |
|
|
148
|
+
| Netlify access token | LIVE, correct account email | manual delete (page linked) | DEAD |
|
|
147
149
|
|
|
148
150
|
Against the real AWS, GitLab, Anthropic and npm APIs, invalid keys are correctly reported DEAD.
|
|
149
151
|
Providers not yet tested with a live key (OpenAI, OpenRouter, Groq, Replicate, DigitalOcean,
|
|
150
|
-
SendGrid, Telegram, and the
|
|
152
|
+
SendGrid, Telegram, and the other 13 added in 0.7) are covered by tests using simulated API responses.
|
|
151
153
|
|
|
152
154
|
### Accuracy (independent dataset)
|
|
153
155
|
|
|
@@ -171,7 +173,7 @@ leakkill somewhat; false alarms on four clean repositories (requests, flask, dja
|
|
|
171
173
|
|
|
172
174
|
### How it's tested
|
|
173
175
|
|
|
174
|
-
-
|
|
176
|
+
- 155 tests on Linux, macOS and Windows with Python 3.9 and 3.13; CI fails below 88% branch coverage (currently 93%).
|
|
175
177
|
- Property-based fuzz tests: the scanner never crashes on random input, never prints a raw secret, finds a
|
|
176
178
|
planted token in any surrounding text, and gives the same answer scanning a whole file or line by line.
|
|
177
179
|
(Fuzzing found two real bugs before release: a guard crash and a slow-input case, both fixed.)
|
|
@@ -323,7 +325,7 @@ baseline doesn't make it safe: revoke real keys first.
|
|
|
323
325
|
# .pre-commit-config.yaml
|
|
324
326
|
repos:
|
|
325
327
|
- repo: https://github.com/ayushanand27/leakkill
|
|
326
|
-
rev: v0.7.
|
|
328
|
+
rev: v0.7.1
|
|
327
329
|
hooks:
|
|
328
330
|
- id: leakkill
|
|
329
331
|
```
|
|
@@ -131,3 +131,13 @@ def test_replacements_file_is_owner_only_and_never_overwrites(tmp_path, monkeypa
|
|
|
131
131
|
(tmp_path / "keep.txt").write_text("important")
|
|
132
132
|
assert cli.main(["report", "--replacements", "keep.txt"]) == 2
|
|
133
133
|
assert (tmp_path / "keep.txt").read_text() == "important" and "not overwriting" in capsys.readouterr().err
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def test_next_step_hints(tmp_path, monkeypatch, capsys):
|
|
137
|
+
project(tmp_path, monkeypatch); fake_verify(monkeypatch)
|
|
138
|
+
cli.main(["scan"])
|
|
139
|
+
assert "Next: `leakkill verify`" in capsys.readouterr().out
|
|
140
|
+
cli.main(["verify"])
|
|
141
|
+
assert "Next: `leakkill revoke`" in capsys.readouterr().out
|
|
142
|
+
cli.main(["scan", "--json"])
|
|
143
|
+
assert "Next:" not in capsys.readouterr().out # machine output stays pure JSON
|
|
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
|
|
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
|