zeroleaks 1.0.0

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.

Potentially problematic release.


This version of zeroleaks might be problematic. Click here for more details.

Files changed (53) hide show
  1. package/LICENSE +106 -0
  2. package/README.md +140 -0
  3. package/dist/agents/attacker.d.ts +55 -0
  4. package/dist/agents/attacker.d.ts.map +1 -0
  5. package/dist/agents/engine.d.ts +57 -0
  6. package/dist/agents/engine.d.ts.map +1 -0
  7. package/dist/agents/evaluator.d.ts +34 -0
  8. package/dist/agents/evaluator.d.ts.map +1 -0
  9. package/dist/agents/index.d.ts +7 -0
  10. package/dist/agents/index.d.ts.map +1 -0
  11. package/dist/agents/mutator.d.ts +28 -0
  12. package/dist/agents/mutator.d.ts.map +1 -0
  13. package/dist/agents/strategist.d.ts +36 -0
  14. package/dist/agents/strategist.d.ts.map +1 -0
  15. package/dist/agents/target.d.ts +13 -0
  16. package/dist/agents/target.d.ts.map +1 -0
  17. package/dist/bin/cli.d.ts +3 -0
  18. package/dist/bin/cli.d.ts.map +1 -0
  19. package/dist/bin/cli.js +23461 -0
  20. package/dist/index.d.ts +6 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +18358 -0
  23. package/dist/knowledge/defense-bypass.d.ts +34 -0
  24. package/dist/knowledge/defense-bypass.d.ts.map +1 -0
  25. package/dist/knowledge/exfiltration.d.ts +43 -0
  26. package/dist/knowledge/exfiltration.d.ts.map +1 -0
  27. package/dist/knowledge/index.d.ts +5 -0
  28. package/dist/knowledge/index.d.ts.map +1 -0
  29. package/dist/knowledge/payloads.d.ts +23 -0
  30. package/dist/knowledge/payloads.d.ts.map +1 -0
  31. package/dist/knowledge/techniques.d.ts +33 -0
  32. package/dist/knowledge/techniques.d.ts.map +1 -0
  33. package/dist/probes/advanced.d.ts +19 -0
  34. package/dist/probes/advanced.d.ts.map +1 -0
  35. package/dist/probes/direct.d.ts +8 -0
  36. package/dist/probes/direct.d.ts.map +1 -0
  37. package/dist/probes/encoding.d.ts +24 -0
  38. package/dist/probes/encoding.d.ts.map +1 -0
  39. package/dist/probes/index.d.ts +27 -0
  40. package/dist/probes/index.d.ts.map +1 -0
  41. package/dist/probes/modern.d.ts +14 -0
  42. package/dist/probes/modern.d.ts.map +1 -0
  43. package/dist/probes/personas.d.ts +15 -0
  44. package/dist/probes/personas.d.ts.map +1 -0
  45. package/dist/probes/social.d.ts +8 -0
  46. package/dist/probes/social.d.ts.map +1 -0
  47. package/dist/probes/technical.d.ts +8 -0
  48. package/dist/probes/technical.d.ts.map +1 -0
  49. package/dist/types.d.ts +244 -0
  50. package/dist/types.d.ts.map +1 -0
  51. package/dist/utils.d.ts +16 -0
  52. package/dist/utils.d.ts.map +1 -0
  53. package/package.json +76 -0
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "zeroleaks",
3
+ "version": "1.0.0",
4
+ "description": "AI Security Scanner - Test your AI systems for prompt injection and extraction vulnerabilities",
5
+ "author": "ZeroLeaks <hello@zeroleaks.ai>",
6
+ "license": "BSL-1.1",
7
+ "homepage": "https://zeroleaks.ai",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/ZeroLeaks/zeroleaks.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/ZeroLeaks/zeroleaks/issues"
14
+ },
15
+ "keywords": [
16
+ "ai",
17
+ "security",
18
+ "llm",
19
+ "prompt-injection",
20
+ "jailbreak",
21
+ "red-team",
22
+ "penetration-testing",
23
+ "openai",
24
+ "anthropic",
25
+ "claude",
26
+ "gpt"
27
+ ],
28
+ "type": "module",
29
+ "main": "./dist/index.js",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "bin": {
33
+ "zeroleaks": "./dist/bin/cli.js"
34
+ },
35
+ "exports": {
36
+ ".": {
37
+ "import": "./dist/index.js",
38
+ "types": "./dist/index.d.ts"
39
+ },
40
+ "./agents": {
41
+ "import": "./dist/agents/index.js",
42
+ "types": "./dist/agents/index.d.ts"
43
+ },
44
+ "./probes": {
45
+ "import": "./dist/probes/index.js",
46
+ "types": "./dist/probes/index.d.ts"
47
+ }
48
+ },
49
+ "files": ["dist", "README.md", "LICENSE"],
50
+ "scripts": {
51
+ "build": "bun build ./src/index.ts --outdir ./dist --target node && bun build ./src/bin/cli.ts --outdir ./dist/bin --target node && tsc --emitDeclarationOnly",
52
+ "dev": "bun run --watch src/bin/cli.ts",
53
+ "test": "bun test",
54
+ "lint": "biome check .",
55
+ "format": "biome format --write .",
56
+ "typecheck": "tsc --noEmit",
57
+ "prepublishOnly": "bun run build"
58
+ },
59
+ "dependencies": {
60
+ "@openrouter/ai-sdk-provider": "^0.4.3",
61
+ "ai": "^4.3.15",
62
+ "commander": "^13.1.0",
63
+ "js-tiktoken": "^1.0.18",
64
+ "ora": "^8.2.0",
65
+ "zod": "^3.24.2"
66
+ },
67
+ "devDependencies": {
68
+ "@biomejs/biome": "^1.9.4",
69
+ "@types/bun": "^1.2.4",
70
+ "@types/node": "^22.14.1",
71
+ "typescript": "^5.7.3"
72
+ },
73
+ "engines": {
74
+ "node": ">=18.0.0"
75
+ }
76
+ }