pharosone-security-scanner 0.1.0__py3-none-any.whl

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.
Files changed (72) hide show
  1. pharosone_security_scanner-0.1.0.dist-info/METADATA +259 -0
  2. pharosone_security_scanner-0.1.0.dist-info/RECORD +72 -0
  3. pharosone_security_scanner-0.1.0.dist-info/WHEEL +4 -0
  4. pharosone_security_scanner-0.1.0.dist-info/entry_points.txt +2 -0
  5. pharosone_security_scanner-0.1.0.dist-info/licenses/LICENSE +201 -0
  6. pharosone_security_scanner-0.1.0.dist-info/licenses/NOTICE +60 -0
  7. probe_engine/__init__.py +3 -0
  8. probe_engine/cli.py +390 -0
  9. probe_engine/compile/__init__.py +0 -0
  10. probe_engine/compile/compiler.py +76 -0
  11. probe_engine/config/__init__.py +1 -0
  12. probe_engine/config/profile.py +87 -0
  13. probe_engine/corpus/__init__.py +0 -0
  14. probe_engine/corpus/loader.py +43 -0
  15. probe_engine/domain/__init__.py +0 -0
  16. probe_engine/domain/base.py +9 -0
  17. probe_engine/domain/coverage.py +30 -0
  18. probe_engine/domain/crosswalk.py +37 -0
  19. probe_engine/domain/enums.py +56 -0
  20. probe_engine/domain/evidence.py +56 -0
  21. probe_engine/domain/framework.py +63 -0
  22. probe_engine/domain/probe.py +162 -0
  23. probe_engine/domain/run.py +190 -0
  24. probe_engine/domain/taxonomy.py +22 -0
  25. probe_engine/mapping/__init__.py +0 -0
  26. probe_engine/mapping/coverage.py +80 -0
  27. probe_engine/mapping/loader.py +37 -0
  28. probe_engine/plan/__init__.py +25 -0
  29. probe_engine/plan/allocate.py +424 -0
  30. probe_engine/plan/library_spec.py +169 -0
  31. probe_engine/plan/models.py +128 -0
  32. probe_engine/plan/synthesize.py +348 -0
  33. probe_engine/py.typed +0 -0
  34. probe_engine/report/__init__.py +0 -0
  35. probe_engine/report/builder.py +283 -0
  36. probe_engine/report/model.py +130 -0
  37. probe_engine/report/render_json.py +62 -0
  38. probe_engine/report/render_markdown.py +307 -0
  39. probe_engine/run/__init__.py +0 -0
  40. probe_engine/run/checkpoint.py +120 -0
  41. probe_engine/run/executor.py +677 -0
  42. probe_engine/run/selection.py +127 -0
  43. probe_engine/sandbox/__init__.py +0 -0
  44. probe_engine/sandbox/state.py +182 -0
  45. probe_engine/sandbox/tools.py +128 -0
  46. probe_engine/scoring/__init__.py +0 -0
  47. probe_engine/scoring/aggregate.py +66 -0
  48. probe_engine/scoring/batch_judge.py +378 -0
  49. probe_engine/scoring/judge.py +169 -0
  50. probe_engine/scoring/oracle.py +371 -0
  51. probe_engine/scoring/statistics.py +34 -0
  52. probe_engine/scoring/unverified.py +65 -0
  53. probe_engine/targets/__init__.py +0 -0
  54. probe_engine/targets/adaptive.py +339 -0
  55. probe_engine/targets/agent_context.py +109 -0
  56. probe_engine/targets/bridge.py +313 -0
  57. probe_engine/targets/capabilities.py +28 -0
  58. probe_engine/targets/mock.py +247 -0
  59. probe_engine/targets/model.py +78 -0
  60. probe_engine/targets/registry.py +100 -0
  61. probe_engine/util/__init__.py +1 -0
  62. probe_engine/util/resilient_generate.py +155 -0
  63. probe_engine/variation/__init__.py +0 -0
  64. probe_engine/variation/batch_pregen.py +217 -0
  65. probe_engine/variation/generate.py +145 -0
  66. probe_engine/variation/llm_paraphrase.py +176 -0
  67. probe_engine/variation/mutators.py +62 -0
  68. probe_engine/variation/obfuscate.py +306 -0
  69. probe_engine/variation/techniques.py +421 -0
  70. probe_engine/web/__init__.py +1 -0
  71. probe_engine/web/app.py +343 -0
  72. probe_engine/web/static/index.html +374 -0
@@ -0,0 +1,259 @@
1
+ Metadata-Version: 2.4
2
+ Name: pharosone-security-scanner
3
+ Version: 0.1.0
4
+ Summary: PharosOne Security Scanner — a behavioral vulnerability scanner (red-team) for AI agents
5
+ Project-URL: Homepage, https://pharosone.ai
6
+ Project-URL: Documentation, https://pharosone.ai
7
+ Author-email: PharosOne <dmitry@pharosone.ai>
8
+ Maintainer-email: PharosOne <dmitry@pharosone.ai>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: ai-agents,ai-security,aiuc-1,inspect-ai,llm,prompt-injection,red-team,vulnerability-scanner
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Security
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: anthropic>=0.40
22
+ Requires-Dist: fastapi>=0.110
23
+ Requires-Dist: httpx>=0.27
24
+ Requires-Dist: inspect-ai>=0.3.240
25
+ Requires-Dist: jinja2>=3.1
26
+ Requires-Dist: openai>=1.0
27
+ Requires-Dist: pydantic>=2.7
28
+ Requires-Dist: pyyaml>=6.0
29
+ Requires-Dist: typer>=0.12
30
+ Requires-Dist: uvicorn>=0.29
31
+ Provides-Extra: dev
32
+ Requires-Dist: pytest>=8.0; extra == 'dev'
33
+ Description-Content-Type: text/markdown
34
+
35
+ <div align="center">
36
+
37
+ # PharosOne Security Scanner
38
+
39
+ **Point it at your AI agent. It wires itself in, red-teams it, and hands you an audit-ready report.**
40
+
41
+ [**Website**](https://pharosone.ai) · [Architecture](docs/architecture.md) · [Experiments](benchmarks/variation_strategies/README.md) · [Design specs](docs/design/)
42
+
43
+ ![License](https://img.shields.io/badge/license-Apache--2.0-blue)
44
+ ![Python](https://img.shields.io/badge/python-3.12%2B-blue)
45
+ ![Probes](https://img.shields.io/badge/attack%20probes-118-green)
46
+ ![Standard](https://img.shields.io/badge/maps%20to-AIUC--1-8A2BE2)
47
+
48
+ </div>
49
+
50
+ > [!TIP]
51
+ > The fastest way in is the **`pharosone` skill**. Run it in Claude Code, point it at your agent's
52
+ > repository, and it does the wiring for you — investigate → wrap → scan → report. Jump to
53
+ > [Quick start](#-quick-start).
54
+
55
+ ---
56
+
57
+ ## Overview
58
+
59
+ Traditional scanners check configuration and code. An AI agent's most dangerous failures are
60
+ **behavioral** — it can be talked into leaking its system prompt, calling a dangerous tool with
61
+ attacker-controlled arguments, trusting an instruction smuggled inside a document it ingested, or
62
+ laundering a record's status past a decision gate. None of that shows up in a static scan; it only
63
+ appears when you *drive the agent and watch what it does*.
64
+
65
+ PharosOne Security Scanner runs a versioned, **agent-agnostic** corpus of attack **probes** (YAML),
66
+ mutates and repeats each one against your agent, decides success with a deterministic oracle backed
67
+ by an LLM judge, and maps the evidence onto the **AIUC‑1** control standard through an
68
+ ATLAS / OWASP‑Agentic / CWE crosswalk — producing an audit-ready report with attack success rates,
69
+ confidence intervals, and surfaced blind spots.
70
+
71
+ > **Authorized testing only.** This is an offensive-security tool. Use it exclusively against agents
72
+ > you own or have explicit written permission to test. See [Responsible use](#responsible-use).
73
+
74
+ ---
75
+
76
+ ## 🚀 Quick start
77
+
78
+ You don't hand-write test harnesses. The **`pharosone` skill** onboards a real agent for you as a
79
+ guided conversation.
80
+
81
+ **1. Add the skill**
82
+
83
+ ```bash
84
+ npx skills add pharosone/pharosone
85
+ ```
86
+
87
+ That installs the `pharosone` skill (and its sub-skills) into Claude Code — nothing to clone or set
88
+ up by hand.
89
+
90
+ **2. Point it at your agent, in Claude Code**
91
+
92
+ Ask Claude to red-team your agent and give it the path to the agent's repository — for example:
93
+
94
+ ```
95
+ Use the pharosone skill to red-team the agent in ../my-support-agent
96
+ ```
97
+
98
+ The skill then, as a guided flow:
99
+
100
+ - **Investigates** the agent — its topology (in-process / local HTTP / remote), tool inventory, and
101
+ untrusted input channels.
102
+ - **Asks a few scoping questions** — which standard(s) to certify against, how deep/expensive to go,
103
+ and which models run the target and the attacker. It **never asks for a secret key** — only the
104
+ **environment-variable name** that holds it.
105
+ - **Wraps the agent** in a bridge adapter (see below), builds a run profile, validates everything,
106
+ and **launches the scan with live progress**, ending in a JSON + Markdown report.
107
+
108
+ ---
109
+
110
+ ## How it wraps your agent
111
+
112
+ The scanner only catches "did a thing it shouldn't" when the agent's actions are **observable** and
113
+ its untrusted inputs are **injectable**. So the skill generates a **bridge adapter** that cuts the
114
+ agent at its **narrowest reachable waist** — above the messy layers (auth / transport /
115
+ serialization), below the agent's reasoning — where:
116
+
117
+ - every **tool call is observable** (the scanner sees exactly what the agent decided to do),
118
+ - every **untrusted channel is injectable** (message, retrieved document, tool result, memory, a
119
+ record field, an image, …), and
120
+ - real **side effects are neutralized** — writes and outbound actions are recorded, never executed.
121
+
122
+ You never rewrite the agent; you adapt only its I/O. The adapter exposes `external()`, declares which
123
+ `channels()` it can route poison into, and maps the agent's concrete tools to canonical capabilities.
124
+ See the worked example in [`harness/example-agent/`](harness/example-agent/) and the framework-agent
125
+ template in [`examples/bridge_real_agent.py`](examples/bridge_real_agent.py).
126
+
127
+ ---
128
+
129
+ ## ✨ Architecture & why it's different
130
+
131
+ A run is a fixed pipeline; the CLI and the web UI both drive the same `run_corpus`:
132
+
133
+ ```
134
+ corpus → selection → variation → compile → eval (target) → oracle → judge → aggregate → coverage → report
135
+ ```
136
+
137
+ **What sets it apart:**
138
+
139
+ - **Judge-only success.** The semantic invariant lives in the **oracle** and an **LLM judge**, never
140
+ in the prompt text. A deterministic oracle stamps a provisional per-trial hit; a post-eval batch
141
+ judge then adjudicates *all* of a probe's trials and sets the verdict. This is what makes heavily
142
+ mutated / obfuscated attack rewrites safe to use without breaking scoring.
143
+ - **Blind spots are never silent passes.** Selection is an *execution* parameter, not a report
144
+ filter. A probe whose required capability, channel, or context the target doesn't declare is
145
+ **skipped and surfaced** — never re-routed onto another surface and never counted as "robust".
146
+ - **Statistical, not anecdotal.** Every probe is repeated and reported as an attack success rate with
147
+ a Wilson confidence interval, not a single lucky jailbreak.
148
+ - **Standard-mapped output.** Findings resolve to **AIUC‑1** controls; controls that aren't
149
+ behaviorally testable are marked `not_testable`, never "failed".
150
+ - **Data decoupled from code.** Attacks, the standard, and the crosswalk are versioned data — extend
151
+ along one axis at a time (drop a probe YAML, add a standard, add a target adapter).
152
+
153
+ Deep dives:
154
+
155
+ - 📐 **Architecture** — [`docs/architecture.md`](docs/architecture.md) (principles, the variation
156
+ subsystem, scoring, standards mapping, with diagrams).
157
+ - 🧪 **Experiments** — [`benchmarks/variation_strategies/README.md`](benchmarks/variation_strategies/README.md)
158
+ (empirical comparison of attack-variation policies and LLM-judge calibration).
159
+ - 📄 **Design specs** — [`docs/design/`](docs/design/).
160
+
161
+ ---
162
+
163
+ ## Corpus & standards
164
+
165
+ - **118 attack probes** (`corpus/probes/*.yaml`) — prompt injection & extraction, indirect injection
166
+ over ingestion channels, tool-misuse and authorization gaps, state/status laundering, output
167
+ exfiltration, a coding/deploy threat pack (unreviewed/unauthorized deploy, supply-chain backdoors,
168
+ CI-gate tampering), and cross-session memory campaigns.
169
+ - **AIUC‑1** control standard (`frameworks/aiuc-1.yaml`) mapped via a research-derived crosswalk
170
+ (`crosswalks/aiuc-1/`) over ATLAS / OWASP Agentic / CWE coordinates.
171
+
172
+ Attack techniques are adapted from published open-source research (see [`NOTICE`](NOTICE)); upstream
173
+ payload datasets are **not** redistributed.
174
+
175
+ ---
176
+
177
+ ## Running it directly (CLI)
178
+
179
+ The skill is the recommended path, but the scanner is a normal CLI too (`probe-engine`). Install from
180
+ source:
181
+
182
+ ```bash
183
+ git clone git@github.com:pharosone/pharosone.git
184
+ cd pharosone
185
+ uv sync --extra dev
186
+ ```
187
+
188
+ **Validate** the corpus, framework, and crosswalk:
189
+
190
+ ```bash
191
+ uv run probe-engine validate \
192
+ --corpus corpus/probes --framework frameworks/aiuc-1.yaml \
193
+ --crosswalk crosswalks/aiuc-1/crosswalk.yaml
194
+ ```
195
+
196
+ **Run** against a target and write reports to `reports/out/`:
197
+
198
+ ```bash
199
+ uv run probe-engine run --profile configs/profiles/finance-support-agent.yaml \
200
+ --corpus corpus/probes --framework frameworks/aiuc-1.yaml \
201
+ --crosswalk crosswalks/aiuc-1/crosswalk.yaml --out reports/out
202
+ ```
203
+
204
+ **Serve** the web UI (live run progress):
205
+
206
+ ```bash
207
+ uv run probe-engine serve # http://127.0.0.1:8000
208
+ ```
209
+
210
+ See [`configs/profiles/`](configs/profiles/) and [`examples/industries/`](examples/industries/) for
211
+ example run profiles.
212
+
213
+ ---
214
+
215
+ ## Requirements — models & keys
216
+
217
+ Real red-teaming needs **LLM access on both sides**:
218
+
219
+ - **Target side** — the agent under test runs on its own model (the `bridge` tier reaches your real
220
+ agent; the `model` tier runs a synthetic agent on a real LLM).
221
+ - **Attacker side** — an LLM generates the mutated/adaptive attacks and acts as the semantic judge
222
+ that decides success.
223
+
224
+ Keys are read from the **environment only** and stay in memory for the run — never written to disk or
225
+ logs; the skill asks for env-var **names**, never key values.
226
+
227
+ A deterministic **`mock` tier** needs no model and no key — it drives the whole pipeline offline and
228
+ is what the test suite (783 tests) and CI use. It's great for trying the pipeline, corpus
229
+ development, and demos, but it does **not** exercise a real agent; use `model`/`bridge` for actual
230
+ scanning.
231
+
232
+ ---
233
+
234
+ ## Responsible use
235
+
236
+ > [!WARNING]
237
+ > This is a **dual-use offensive-security tool**. Run it **only** against AI agents you own or are
238
+ > explicitly authorized in writing to test. You are responsible for compliance with applicable laws
239
+ > and with the terms of any model provider or platform you exercise during a run. Reports from runs
240
+ > configured with `protected_snippets` or the coding/deploy pack are **sensitive** — when those
241
+ > oracles fire, the agent's own leaked text or malicious code is retained in the evidence *by design*
242
+ > (it is the proof). See [`SECURITY.md`](SECURITY.md); report tool vulnerabilities to
243
+ > **security@pharosone.ai** (not a public issue).
244
+
245
+ ---
246
+
247
+ ## Contributing
248
+
249
+ New probes, standards, target adapters, and crosswalk entries all extend cleanly along a single axis.
250
+ See [`CONTRIBUTING.md`](CONTRIBUTING.md) and [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md). Questions:
251
+ **dmitry@pharosone.ai**.
252
+
253
+ ## License
254
+
255
+ **Apache License 2.0** — see [`LICENSE`](LICENSE). Third-party attributions in [`NOTICE`](NOTICE).
256
+
257
+ ---
258
+
259
+ <sub>PharosOne Security Scanner · [pharosone.ai](https://pharosone.ai)</sub>
@@ -0,0 +1,72 @@
1
+ probe_engine/__init__.py,sha256=NoyQGxggg9h5bKpP5K4NriuFtzK2b3ycTVSz_3b0aFg,53
2
+ probe_engine/cli.py,sha256=cv3NDjBW1Ko8dR2zG76ZQqJ-Df7NS6rXVl0r27LNTsc,18134
3
+ probe_engine/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ probe_engine/compile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ probe_engine/compile/compiler.py,sha256=aEEjL-BD-rFqnhPv7YwPzxtDyB8BLF4wXl0K9XsHqqA,3160
6
+ probe_engine/config/__init__.py,sha256=q51UaO6aIQb-YKVNrrmSw0vZW-TRV8Ax3_BkKErFmY0,73
7
+ probe_engine/config/profile.py,sha256=9sebvS2ejUg0Q6GaLwbcRXeyUIsydiVsjIQlSeWo0lE,4083
8
+ probe_engine/corpus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ probe_engine/corpus/loader.py,sha256=Q3iqQm83kI0yfbr6WInzmdWIwX629qPMdWTYxSEf3Hc,1340
10
+ probe_engine/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ probe_engine/domain/base.py,sha256=OhxZjYLfPTultxyJDMe7rzsnouef_g4yhedG3a1yBMA,247
12
+ probe_engine/domain/coverage.py,sha256=AUH5cQmexLLCp5JH5K1C0QUPOVk1Yk3owGMzunn2ezE,884
13
+ probe_engine/domain/crosswalk.py,sha256=phDCrrb6DIxTzgdPwa7o0X6jlWBNe5NCBA0PyZSSrZU,1166
14
+ probe_engine/domain/enums.py,sha256=dZpnjvcwzQ3meoOJHGb7vvpSvhVpMV3GC2tPqWCIr1A,1795
15
+ probe_engine/domain/evidence.py,sha256=daXlSyzwYUrnKRIfNM2Y6SHPcBUzQHLqwLZ73zqNM1U,2111
16
+ probe_engine/domain/framework.py,sha256=K2A__kaQeHmR_ygRh10pD_NEQBZRdfq7E1BVAIvz3A4,1908
17
+ probe_engine/domain/probe.py,sha256=hdnzsftNaxhVV6zfJ5wI0G8itZajw0OozQpvUK0Vx2w,6396
18
+ probe_engine/domain/run.py,sha256=aRmZQ4gScAE8xOptOQnihSicFFearLFEK7TIxI10hlw,11767
19
+ probe_engine/domain/taxonomy.py,sha256=w-HccogIkKce8ltcUaPVV2z7w1DJ0L2qo3amse8IFHs,661
20
+ probe_engine/mapping/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
+ probe_engine/mapping/coverage.py,sha256=9_T5DrSdXLrgL6vmmE4O1_Jw6iaVdyIt1Qe4FbDL-NY,3245
22
+ probe_engine/mapping/loader.py,sha256=eXjwLTycBBww4TfV0iYoTdEYLYe3j8vsnvAyzSCfEeA,1137
23
+ probe_engine/plan/__init__.py,sha256=g6CZ-AfiiQrf6KQ9btAqblzy4ak6wFkl8uOq5wg2QWw,792
24
+ probe_engine/plan/allocate.py,sha256=9miH-6FbmujpmtRLVqvb_JFC0gygMX78gtg1wNJtmtE,20254
25
+ probe_engine/plan/library_spec.py,sha256=91u3z-8V-hg9m-L2dVJGr7VS54X_R61NOnxWW5XFs5k,7486
26
+ probe_engine/plan/models.py,sha256=g8y_v2d0mCc3jPNrIxj3r7rKiUg-DmNLVhZmAiWT0BY,4775
27
+ probe_engine/plan/synthesize.py,sha256=wmjqYoXkM3rPstbAjTOUqfitleqjhwyf0_GdkQMuSJE,15948
28
+ probe_engine/report/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ probe_engine/report/builder.py,sha256=jjdilSkemCgjLdybRCFtODoPlcneLJSfM8TCm3dQt3g,11961
30
+ probe_engine/report/model.py,sha256=R83L1q0AWTNB6JZyEFdDGB0oMrU2kZbxgdIPLMrIIrY,6018
31
+ probe_engine/report/render_json.py,sha256=joNEpfGq-UuuVGYS1yxxF0xHGDrsPMY4Mt7oJKe_R6o,3584
32
+ probe_engine/report/render_markdown.py,sha256=RQDLQBlbc8FmsrOaO45gDBV7yVKv61GU2j3dHA7EZa8,13632
33
+ probe_engine/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
+ probe_engine/run/checkpoint.py,sha256=uTCjz6i-HCe62W4ibEg40ip36Mxuo2IXKrEv6BjJLoY,5848
35
+ probe_engine/run/executor.py,sha256=-PfYhjsDdKTHXQF6xSoA-1C45tXUFFzCY8wym5f0-zI,34601
36
+ probe_engine/run/selection.py,sha256=125mmDc_P5aFAoqHwGtdzS38sOfLzF1Qg_5l8mvv0Mk,6646
37
+ probe_engine/sandbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
+ probe_engine/sandbox/state.py,sha256=Bl019Nyf_EppOZBa9_pkG2OY6uLJzGlKUeqwWTiMHeQ,7962
39
+ probe_engine/sandbox/tools.py,sha256=xdDbUTUnZn7iMD05K_2UFCE8pdUxYuxC0oNodNz_f68,4617
40
+ probe_engine/scoring/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
+ probe_engine/scoring/aggregate.py,sha256=9heFpeg8oRM0ft7BXZQRwrIX_9a6QtYksxfPBq6N-Dw,2625
42
+ probe_engine/scoring/batch_judge.py,sha256=hkMlEo8aD1SiEgkZVlOyB4CxEoH8blSkIoKpqhWWI60,17271
43
+ probe_engine/scoring/judge.py,sha256=WZp-yDhpqtYt0TciX9Y-UrB3YtrTXIWnSvWxkqInQXI,7888
44
+ probe_engine/scoring/oracle.py,sha256=AZ6Qj0JBW-AeB8_Oy52aWQ28Py91iZD-orQXmExbyMc,18312
45
+ probe_engine/scoring/statistics.py,sha256=az6wqgFfNMcmt3FQY_-z3D0hv9QbwAyLie631-NeRF0,1246
46
+ probe_engine/scoring/unverified.py,sha256=4R2Y6D0A-DnUcsscGngjSGjCqMykTWxEmNbCSykIupo,3735
47
+ probe_engine/targets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
+ probe_engine/targets/adaptive.py,sha256=wEBFSMEFNA8DFq449Ug62FDVb7iYzYRKGAy6qADHrsQ,14444
49
+ probe_engine/targets/agent_context.py,sha256=HZ_dYGOFS-RHOCeLGWdsvbi1fcRnkNkTkT4iZU2Q3rk,5138
50
+ probe_engine/targets/bridge.py,sha256=BZKNwIrikgtUI1Mv2rGlyq7k1PXudM2SFOH_n-0v7-Y,13658
51
+ probe_engine/targets/capabilities.py,sha256=I4lMrdBUZog4yh1H9qxQKoGrXimWrTTpHDetdzNQkDA,1360
52
+ probe_engine/targets/mock.py,sha256=XRV76-c5WAr1g8moKyyyjBvXWp1DnjTD_uNDJibcNQw,11714
53
+ probe_engine/targets/model.py,sha256=dgxPgWXXPPW1zNtbybTaMsjgbFznKJLcWDt7_dUC7BY,3009
54
+ probe_engine/targets/registry.py,sha256=15qiC0LxYGSbDT-FowH-HXQbvViA_sM2hYzoqObOns4,4878
55
+ probe_engine/util/__init__.py,sha256=JWLl12kbS8_awsYE7F1IAx5EwJRdNBptKEPH92bnqvE,78
56
+ probe_engine/util/resilient_generate.py,sha256=Kmr64w5nQCn8xRq9JQetsIIiXst6kc4Ru58MCeAG7M4,6710
57
+ probe_engine/variation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
+ probe_engine/variation/batch_pregen.py,sha256=LxmkzVZc7xsbuPMj0un75c_KXYb5vsvedBwcfp_MB4A,10097
59
+ probe_engine/variation/generate.py,sha256=o2AEac5x_RUELpBTUjWSHidNCPuqwftToVAUQmeLPgQ,7263
60
+ probe_engine/variation/llm_paraphrase.py,sha256=YliPXTrmmAyMV_t7oi7dMAX-ZCwjhWg3RLkHM2O41J4,8880
61
+ probe_engine/variation/mutators.py,sha256=LgEttdmNaM7L5nz28Z0ta4KnYP8crnqDLE66_NOs4jU,1808
62
+ probe_engine/variation/obfuscate.py,sha256=VibL3KGbZgOizLiTKUWMF-_kWq9bYij7OaGrL_4saVU,11617
63
+ probe_engine/variation/techniques.py,sha256=NMBTlOpza7zpiVgITCc0pghdM4yQgk_d9WLWWihujQ8,20577
64
+ probe_engine/web/__init__.py,sha256=_PPqpzK4YubjsnLLQP6K1hqEoC5F6JxCVeT6fN89LkM,35
65
+ probe_engine/web/app.py,sha256=QFyU-FNx6XaB8NiYbO20HvB0dj00TI-EzdLV0JIq_XQ,14204
66
+ probe_engine/web/static/index.html,sha256=0vZvWOLgk7iEatvBduSwRQRYAo5FejNDk6Vk43eUg5Y,18567
67
+ pharosone_security_scanner-0.1.0.dist-info/METADATA,sha256=gS6PHjw1ujX9c7mFu-fn1grNspkTrv4ywpI6HXtLrNY,11006
68
+ pharosone_security_scanner-0.1.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
69
+ pharosone_security_scanner-0.1.0.dist-info/entry_points.txt,sha256=B3Bzt8HMzZhcixPMaFDaYxosccVoXz28dxUy0jRW1-E,54
70
+ pharosone_security_scanner-0.1.0.dist-info/licenses/LICENSE,sha256=xDIbFAixacO0jlQeqYhkqHYNUPRicnlAxYZkYWdxI2w,11339
71
+ pharosone_security_scanner-0.1.0.dist-info/licenses/NOTICE,sha256=6hyKxcCMW-F6oMXlgtw07YUZmAdchZmBJzBmz34Fhug,3611
72
+ pharosone_security_scanner-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ probe-engine = probe_engine.cli:app
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 PharosOne
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,60 @@
1
+ PharosOne Probe Engine — third-party attributions
2
+ ==================================================
3
+
4
+ The attack corpus (corpus/probes/*.yaml) includes probes whose attack TECHNIQUES are
5
+ adapted from third-party open-source security research. Each probe records its origin in
6
+ its `provenance` block (source + url). This NOTICE summarizes those derivations.
7
+
8
+ Important: PharosOne adapts the attack *technique and a representative payload* and
9
+ re-expresses it in the engine's own probe format and voice (multi-channel, multi-turn,
10
+ capability-mapped, English). It does NOT vendor or redistribute the upstream projects'
11
+ verbatim payload datasets. Where a probe's fidelity differs from the upstream (e.g. a
12
+ non-text modality approximated on another channel, or a content-harm payload retargeted to
13
+ a tool-misuse oracle), the probe's `provenance.source` carries a `fidelity:` note.
14
+
15
+
16
+ garak — LLM vulnerability scanner (NVIDIA)
17
+ ------------------------------------------
18
+ ~58 probes under id `garak-*` adapt attack techniques from garak's probe modules
19
+ (latentinjection, web_injection, ansiescape, packagehallucination, encoding, smuggling,
20
+ badchars, dra, goodside, suffix, glitch, adaptive_attacks, atkgen, tap, goat, fitd, dan,
21
+ continuation, realtoxicityprompts, lmrc, donotanswer, topic, grandma, doctor, misleading,
22
+ phrasing, snowball, divergence, leakreplay, malwaregen, exploitation, apikey,
23
+ av_spam_scanning, fileformats, sysprompt_extraction, sata, visual_jailbreak, audio,
24
+ agent_breaker, propile).
25
+
26
+ Project: garak — https://github.com/NVIDIA/garak
27
+ License: Apache License 2.0 — https://www.apache.org/licenses/LICENSE-2.0
28
+ Use: attack techniques adapted into PharosOne probe specs; garak source/datasets
29
+ are not redistributed. Per-probe attribution in provenance.source/url.
30
+
31
+ This product includes software developed by NVIDIA CORPORATION & AFFILIATES (garak),
32
+ licensed under the Apache License, Version 2.0.
33
+
34
+
35
+ Other third-party sources cited in probe provenance
36
+ ---------------------------------------------------
37
+ MCPTox — tool-poisoning research — https://arxiv.org/abs/2508.14925
38
+ AgentDyn — dynamic agent attack benchmark — https://arxiv.org/abs/2602.03117
39
+ agent_threat_bench — agent threat scenarios (Inspect Evals, UK AI Safety Institute) —
40
+ https://github.com/UKGovernmentBEIS/inspect_evals
41
+
42
+ Probes marked `source: "PharosOne (original)"` are original to this project.
43
+
44
+
45
+ Standards and taxonomies
46
+ ------------------------
47
+ The framework (frameworks/aiuc-1.yaml) and crosswalk (crosswalks/aiuc-1/crosswalk.yaml) reference
48
+ the following third-party standards by their published control/technique identifiers and labels.
49
+ These are cited for interoperability; the mappings are research-derived and flagged for SME review.
50
+
51
+ AIUC-1 — AI Usage & Controls standard — https://aiuc-1.com
52
+ Control wordings are quoted from the published AIUC-1 text; treated as
53
+ reference. Redistribution of the full catalogue is pending owner/legal review.
54
+ MITRE ATLAS — Adversarial Threat Landscape for AI Systems — https://atlas.mitre.org
55
+ MITRE CWE — Common Weakness Enumeration — https://cwe.mitre.org
56
+ OWASP Agentic — OWASP Agentic Security Initiative / GenAI —
57
+ https://genai.owasp.org
58
+
59
+ MITRE ATLAS and CWE are © The MITRE Corporation; OWASP materials are © the OWASP Foundation.
60
+ Identifiers and labels are used under their respective terms for reference and interoperability.
@@ -0,0 +1,3 @@
1
+ """PharosOne Probe Engine."""
2
+
3
+ __version__ = "0.1.0"