argus-probe 0.1.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.
Files changed (41) hide show
  1. argus_probe-0.1.1/LICENSE +216 -0
  2. argus_probe-0.1.1/NOTICE +38 -0
  3. argus_probe-0.1.1/PKG-INFO +159 -0
  4. argus_probe-0.1.1/README.md +141 -0
  5. argus_probe-0.1.1/argus_probe/__init__.py +1 -0
  6. argus_probe-0.1.1/argus_probe/__main__.py +28 -0
  7. argus_probe-0.1.1/argus_probe/api_client.py +70 -0
  8. argus_probe-0.1.1/argus_probe/baseline_key.py +19 -0
  9. argus_probe-0.1.1/argus_probe/cmd_coverage.py +44 -0
  10. argus_probe-0.1.1/argus_probe/cmd_init.py +187 -0
  11. argus_probe-0.1.1/argus_probe/cmd_list_probes.py +19 -0
  12. argus_probe-0.1.1/argus_probe/cmd_report.py +20 -0
  13. argus_probe-0.1.1/argus_probe/cmd_run.py +172 -0
  14. argus_probe-0.1.1/argus_probe/cmd_validate_target.py +31 -0
  15. argus_probe-0.1.1/argus_probe/git_context.py +40 -0
  16. argus_probe-0.1.1/argus_probe/local_run.py +63 -0
  17. argus_probe-0.1.1/argus_probe/reports.py +196 -0
  18. argus_probe-0.1.1/argus_probe/severity.py +22 -0
  19. argus_probe-0.1.1/argus_probe/target_loader.py +96 -0
  20. argus_probe-0.1.1/argus_probe/templates/report.html.j2 +150 -0
  21. argus_probe-0.1.1/argus_probe.egg-info/PKG-INFO +159 -0
  22. argus_probe-0.1.1/argus_probe.egg-info/SOURCES.txt +39 -0
  23. argus_probe-0.1.1/argus_probe.egg-info/dependency_links.txt +1 -0
  24. argus_probe-0.1.1/argus_probe.egg-info/entry_points.txt +2 -0
  25. argus_probe-0.1.1/argus_probe.egg-info/requires.txt +8 -0
  26. argus_probe-0.1.1/argus_probe.egg-info/top_level.txt +1 -0
  27. argus_probe-0.1.1/pyproject.toml +31 -0
  28. argus_probe-0.1.1/setup.cfg +4 -0
  29. argus_probe-0.1.1/tests/test_baseline_key.py +23 -0
  30. argus_probe-0.1.1/tests/test_cmd_coverage.py +115 -0
  31. argus_probe-0.1.1/tests/test_cmd_init.py +225 -0
  32. argus_probe-0.1.1/tests/test_cmd_report.py +20 -0
  33. argus_probe-0.1.1/tests/test_cmd_run.py +384 -0
  34. argus_probe-0.1.1/tests/test_cmd_run_local.py +211 -0
  35. argus_probe-0.1.1/tests/test_cmd_validate_target.py +20 -0
  36. argus_probe-0.1.1/tests/test_git_context.py +32 -0
  37. argus_probe-0.1.1/tests/test_license_files.py +25 -0
  38. argus_probe-0.1.1/tests/test_reports.py +60 -0
  39. argus_probe-0.1.1/tests/test_reports_mirror.py +23 -0
  40. argus_probe-0.1.1/tests/test_severity.py +21 -0
  41. argus_probe-0.1.1/tests/test_target_loader.py +130 -0
@@ -0,0 +1,216 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+ Copyright 2026 Yang G
205
+
206
+ Licensed under the Apache License, Version 2.0 (the "License");
207
+ you may not use this file except in compliance with the License.
208
+ You may obtain a copy of the License at
209
+
210
+ http://www.apache.org/licenses/LICENSE-2.0
211
+
212
+ Unless required by applicable law or agreed to in writing, software
213
+ distributed under the License is distributed on an "AS IS" BASIS,
214
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
215
+ See the License for the specific language governing permissions and
216
+ limitations under the License.
@@ -0,0 +1,38 @@
1
+ Argus
2
+ Copyright 2026 Argus contributors
3
+
4
+ This product includes software developed by the Argus contributors
5
+ (https://github.com/gy15901580825/Argus).
6
+
7
+ Licensed under the Apache License, Version 2.0. See the LICENSE file for
8
+ the full license text.
9
+
10
+ --------------------------------------------------------------------------
11
+ Third-party material
12
+ --------------------------------------------------------------------------
13
+
14
+ garak — NVIDIA
15
+ https://github.com/NVIDIA/garak
16
+ Licensed under the Apache License, Version 2.0.
17
+
18
+ The 99 probe files under
19
+ orchestrator/orchestrator/redteam/probes/garak/ are wrappers around
20
+ garak's probe catalog. They were generated by
21
+ orchestrator/scripts/wrap_garak_probes.py, which reads attack prompts
22
+ out of garak Probe classes and restates them in the Argus probe schema.
23
+ Each wrapper records its originating garak class in its `_attribution`
24
+ field.
25
+
26
+ garak is not vendored in this repository and is not a runtime
27
+ dependency of Argus. It is installed separately
28
+ (orchestrator/requirements-tools.txt) only when regenerating those
29
+ wrapper files.
30
+
31
+ MITRE ATLAS — The MITRE Corporation
32
+ https://atlas.mitre.org/
33
+
34
+ ATLAS technique identifiers (e.g. AML.T0051.000) appear in probe
35
+ `mappings.atlas` fields, in generated reports, and in
36
+ docs/probe-mapping.md. These identifiers are the work of The MITRE
37
+ Corporation and are used here for classification and cross-reference
38
+ only. Argus is not affiliated with, endorsed by, or certified by MITRE.
@@ -0,0 +1,159 @@
1
+ Metadata-Version: 2.4
2
+ Name: argus-probe
3
+ Version: 0.1.1
4
+ Summary: Argus red-team CLI — run, report, list-probes, validate-target
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.11
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ License-File: NOTICE
10
+ Requires-Dist: click>=8.1
11
+ Requires-Dist: httpx>=0.27
12
+ Requires-Dist: pyyaml<7,>=6.0
13
+ Requires-Dist: pydantic>=2.5
14
+ Requires-Dist: jinja2>=3.1
15
+ Provides-Extra: local
16
+ Requires-Dist: argus-orchestrator<0.4,>=0.3.1; extra == "local"
17
+ Dynamic: license-file
18
+
19
+ # argus-probe
20
+
21
+ Open-source CLI for [Argus](https://github.com/gy15901580825/Argus), black-box red-team testing for AI agents.
22
+
23
+ Point `argus-probe` at any AI agent endpoint — chat APIs, custom HTTP services, gRPC, or browser-using agents — and get a report mapped to MITRE ATLAS, OWASP LLM Top 10, NIST AI RMF, and the EU AI Act.
24
+
25
+ ```
26
+ $ argus-probe run --target argus-target.json --probes owasp_07_system_prompt_leakage --format html --out report.html
27
+ Submitting run to https://<your-argus-host>/api/v1/redteam/runs ...
28
+ run_id: abc123
29
+ Polling until completion...
30
+ status: completed, findings: 1
31
+ Fetching html report...
32
+ Wrote report to report.html
33
+ ```
34
+
35
+ ## Install
36
+
37
+ Python 3.11+ is required.
38
+
39
+ ```bash
40
+ pipx install "argus-probe[local]"
41
+ # or
42
+ pip install "argus-probe[local]"
43
+ ```
44
+
45
+ The `[local]` extra installs the probe engine (`argus-orchestrator`) for `--local`. A plain `pip install argus-probe` gives server mode only: the CLI can then only talk to an Argus API server.
46
+
47
+ From a clone of the repo: `pip install ./orchestrator ./cli`.
48
+
49
+ ## Quickstart
50
+
51
+ ```bash
52
+ # 1. Generate a target spec interactively
53
+ argus-probe init --kind openai_compat
54
+
55
+ # 2a. Run locally: set a judge key, no server needed
56
+ export ANTHROPIC_API_KEY="<your key>"
57
+ argus-probe run --local --target argus-target.json \
58
+ --probes owasp_07_system_prompt_leakage --format html --out report.html
59
+
60
+ # 2b. Or submit to your own Argus API server
61
+ export ARGUS_API_TOKEN="<your token>"
62
+ export ARGUS_API_URL="https://<your-argus-host>"
63
+ argus-probe validate-target --target argus-target.json
64
+ argus-probe run --target argus-target.json \
65
+ --probes owasp_07_system_prompt_leakage --format html --out report.html
66
+ ```
67
+
68
+ `--local` does not support `browser_use` targets; submit those to a server.
69
+
70
+ There is no hosted Argus instance. `ARGUS_API_URL` is your own `api_service` deployment, and the token is the `api_token` of a user on that server. An admin mints one with `POST /api/v1/admin/users` and `"api_token_only": true`; see the [quickstart](https://github.com/gy15901580825/Argus/blob/main/docs/onboarding/quickstart.md) for the first-admin step.
71
+
72
+ ## Supported agent shapes
73
+
74
+ `argus-probe init --kind <X>` generates a target spec for one of:
75
+
76
+ | `--kind` | For |
77
+ |---|---|
78
+ | `openai_compat` | OpenAI Chat Completions protocol — OpenAI, Azure OpenAI, Foundry, Mistral, vLLM/llama.cpp with the OpenAI shim |
79
+ | `anthropic_native` | Anthropic Messages API |
80
+ | `custom_http` | Production agents wrapping an LLM behind their own HTTP shape (Jinja2 request templates + JSONPath response selectors) |
81
+ | `grpc` | gRPC services with server reflection enabled |
82
+ | `browser_use` | Browser-using agents driving Playwright / computer-use / browser-use |
83
+ | `payment_agent` | Agents that spend money on a user's behalf (e.g. x402), run against a payment testbed |
84
+ | `mcp_agent` | Agents that connect to MCP tool servers, run against a hostile MCP testbed |
85
+ | `testbed_agent` | Generic form of `mcp_agent` / `payment_agent`; `environment` picks the testbed |
86
+ | `http_upload` | File-upload-and-render sinks (upload then inline-render an active payload) |
87
+
88
+ Full configuration reference: [target spec cookbook](https://github.com/gy15901580825/Argus/blob/main/docs/onboarding/target-spec-cookbook.md).
89
+
90
+ ## What it does
91
+
92
+ Without `--local`, `argus-probe` is a thin client: it submits the target spec and probe selection to an Argus service over HTTPS; the service runs the probes against your agent and returns the report. With `--local` the same engine runs in this process and calls the judge model directly with your key.
93
+
94
+ Secret references in your target spec (`${OPENAI_API_KEY}`, etc.) are resolved from the local shell environment at run time and sent only as outbound headers to your agent — they never enter the target.json file or the Argus service.
95
+
96
+ ## Output formats
97
+
98
+ - `html` — human-readable report
99
+ - `sarif` — SARIF 2.1.0, uploads cleanly to GitHub code-scanning (Security tab)
100
+ - `junit` — JUnit XML for any CI tool that parses test results
101
+
102
+ ## CI integration
103
+
104
+ There is no published GitHub Action. Run the CLI in a workflow step and upload the SARIF:
105
+
106
+ ```yaml
107
+ - uses: actions/checkout@v4
108
+ - uses: actions/setup-python@v5
109
+ with:
110
+ python-version: "3.11"
111
+ - run: pip install "argus-probe[local]"
112
+ - run: >
113
+ argus-probe run --local --target argus-target.json
114
+ --probes owasp_01_prompt_injection_basic,syscard_crescendo
115
+ --format sarif --out argus.sarif --fail-on critical
116
+ env:
117
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
118
+ - uses: github/codeql-action/upload-sarif@v3
119
+ with:
120
+ sarif_file: argus.sarif
121
+ ```
122
+
123
+ The job needs `permissions: security-events: write` for the SARIF upload. `argus-probe init --workflow` writes a complete workflow file with that set; that workflow runs in server mode. Pull requests from forks and Dependabot do not receive repository secrets, so `ANTHROPIC_API_KEY` is empty and the job fails on them.
124
+
125
+ `--fail-on <severity>` exits 3 when a failing finding is at or above that level; the SARIF is written first, so it still uploads. The workflow from `init --workflow` already passes `--compare-to <base branch>` on pull requests and records the baseline on pushes to `main`; if you write your own, keep both triggers and pass `--compare-to` only on pull requests, so `--fail-on` counts only new failures. `--compare-to` does not count severity increases on probes that already failed, needs GitHub Actions variables or git to detect the branch, and is server mode only, because it needs run history. Exit codes: 0 success, 1 run or configuration error, 2 usage error or `--local` without the engine installed, 3 threshold hit, 4 cost cap.
126
+
127
+ ## Cost controls
128
+
129
+ ```bash
130
+ argus-probe run --target ... --per-run-cap 0.50
131
+ ```
132
+
133
+ Runs that would exceed the cap are rejected before any LLM cost is incurred, in both server and local mode (exit code 4).
134
+
135
+ ## Subcommands
136
+
137
+ ```
138
+ argus-probe init Interactive target.json generator
139
+ argus-probe validate-target Sanity-check target reachability
140
+ argus-probe list-probes List probe ids available to your account
141
+ argus-probe run Submit a run + write the report
142
+ argus-probe report Re-render an existing run's report
143
+ argus-probe coverage Show what the probe library covers; asks the server, runs no probes
144
+ ```
145
+
146
+ Each command's `--help` lists its flags.
147
+
148
+ ## License
149
+
150
+ Apache-2.0 — see [LICENSE](https://github.com/gy15901580825/Argus/blob/main/cli/LICENSE). Copyright © 2026 Veyon Solutions.
151
+
152
+ ## Security
153
+
154
+ To report a vulnerability: see [SECURITY.md](https://github.com/gy15901580825/Argus/blob/main/cli/SECURITY.md).
155
+
156
+ ## Links
157
+
158
+ - Documentation: [docs/onboarding](https://github.com/gy15901580825/Argus/blob/main/docs/onboarding/)
159
+ - Argus repo: https://github.com/gy15901580825/Argus
@@ -0,0 +1,141 @@
1
+ # argus-probe
2
+
3
+ Open-source CLI for [Argus](https://github.com/gy15901580825/Argus), black-box red-team testing for AI agents.
4
+
5
+ Point `argus-probe` at any AI agent endpoint — chat APIs, custom HTTP services, gRPC, or browser-using agents — and get a report mapped to MITRE ATLAS, OWASP LLM Top 10, NIST AI RMF, and the EU AI Act.
6
+
7
+ ```
8
+ $ argus-probe run --target argus-target.json --probes owasp_07_system_prompt_leakage --format html --out report.html
9
+ Submitting run to https://<your-argus-host>/api/v1/redteam/runs ...
10
+ run_id: abc123
11
+ Polling until completion...
12
+ status: completed, findings: 1
13
+ Fetching html report...
14
+ Wrote report to report.html
15
+ ```
16
+
17
+ ## Install
18
+
19
+ Python 3.11+ is required.
20
+
21
+ ```bash
22
+ pipx install "argus-probe[local]"
23
+ # or
24
+ pip install "argus-probe[local]"
25
+ ```
26
+
27
+ The `[local]` extra installs the probe engine (`argus-orchestrator`) for `--local`. A plain `pip install argus-probe` gives server mode only: the CLI can then only talk to an Argus API server.
28
+
29
+ From a clone of the repo: `pip install ./orchestrator ./cli`.
30
+
31
+ ## Quickstart
32
+
33
+ ```bash
34
+ # 1. Generate a target spec interactively
35
+ argus-probe init --kind openai_compat
36
+
37
+ # 2a. Run locally: set a judge key, no server needed
38
+ export ANTHROPIC_API_KEY="<your key>"
39
+ argus-probe run --local --target argus-target.json \
40
+ --probes owasp_07_system_prompt_leakage --format html --out report.html
41
+
42
+ # 2b. Or submit to your own Argus API server
43
+ export ARGUS_API_TOKEN="<your token>"
44
+ export ARGUS_API_URL="https://<your-argus-host>"
45
+ argus-probe validate-target --target argus-target.json
46
+ argus-probe run --target argus-target.json \
47
+ --probes owasp_07_system_prompt_leakage --format html --out report.html
48
+ ```
49
+
50
+ `--local` does not support `browser_use` targets; submit those to a server.
51
+
52
+ There is no hosted Argus instance. `ARGUS_API_URL` is your own `api_service` deployment, and the token is the `api_token` of a user on that server. An admin mints one with `POST /api/v1/admin/users` and `"api_token_only": true`; see the [quickstart](https://github.com/gy15901580825/Argus/blob/main/docs/onboarding/quickstart.md) for the first-admin step.
53
+
54
+ ## Supported agent shapes
55
+
56
+ `argus-probe init --kind <X>` generates a target spec for one of:
57
+
58
+ | `--kind` | For |
59
+ |---|---|
60
+ | `openai_compat` | OpenAI Chat Completions protocol — OpenAI, Azure OpenAI, Foundry, Mistral, vLLM/llama.cpp with the OpenAI shim |
61
+ | `anthropic_native` | Anthropic Messages API |
62
+ | `custom_http` | Production agents wrapping an LLM behind their own HTTP shape (Jinja2 request templates + JSONPath response selectors) |
63
+ | `grpc` | gRPC services with server reflection enabled |
64
+ | `browser_use` | Browser-using agents driving Playwright / computer-use / browser-use |
65
+ | `payment_agent` | Agents that spend money on a user's behalf (e.g. x402), run against a payment testbed |
66
+ | `mcp_agent` | Agents that connect to MCP tool servers, run against a hostile MCP testbed |
67
+ | `testbed_agent` | Generic form of `mcp_agent` / `payment_agent`; `environment` picks the testbed |
68
+ | `http_upload` | File-upload-and-render sinks (upload then inline-render an active payload) |
69
+
70
+ Full configuration reference: [target spec cookbook](https://github.com/gy15901580825/Argus/blob/main/docs/onboarding/target-spec-cookbook.md).
71
+
72
+ ## What it does
73
+
74
+ Without `--local`, `argus-probe` is a thin client: it submits the target spec and probe selection to an Argus service over HTTPS; the service runs the probes against your agent and returns the report. With `--local` the same engine runs in this process and calls the judge model directly with your key.
75
+
76
+ Secret references in your target spec (`${OPENAI_API_KEY}`, etc.) are resolved from the local shell environment at run time and sent only as outbound headers to your agent — they never enter the target.json file or the Argus service.
77
+
78
+ ## Output formats
79
+
80
+ - `html` — human-readable report
81
+ - `sarif` — SARIF 2.1.0, uploads cleanly to GitHub code-scanning (Security tab)
82
+ - `junit` — JUnit XML for any CI tool that parses test results
83
+
84
+ ## CI integration
85
+
86
+ There is no published GitHub Action. Run the CLI in a workflow step and upload the SARIF:
87
+
88
+ ```yaml
89
+ - uses: actions/checkout@v4
90
+ - uses: actions/setup-python@v5
91
+ with:
92
+ python-version: "3.11"
93
+ - run: pip install "argus-probe[local]"
94
+ - run: >
95
+ argus-probe run --local --target argus-target.json
96
+ --probes owasp_01_prompt_injection_basic,syscard_crescendo
97
+ --format sarif --out argus.sarif --fail-on critical
98
+ env:
99
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
100
+ - uses: github/codeql-action/upload-sarif@v3
101
+ with:
102
+ sarif_file: argus.sarif
103
+ ```
104
+
105
+ The job needs `permissions: security-events: write` for the SARIF upload. `argus-probe init --workflow` writes a complete workflow file with that set; that workflow runs in server mode. Pull requests from forks and Dependabot do not receive repository secrets, so `ANTHROPIC_API_KEY` is empty and the job fails on them.
106
+
107
+ `--fail-on <severity>` exits 3 when a failing finding is at or above that level; the SARIF is written first, so it still uploads. The workflow from `init --workflow` already passes `--compare-to <base branch>` on pull requests and records the baseline on pushes to `main`; if you write your own, keep both triggers and pass `--compare-to` only on pull requests, so `--fail-on` counts only new failures. `--compare-to` does not count severity increases on probes that already failed, needs GitHub Actions variables or git to detect the branch, and is server mode only, because it needs run history. Exit codes: 0 success, 1 run or configuration error, 2 usage error or `--local` without the engine installed, 3 threshold hit, 4 cost cap.
108
+
109
+ ## Cost controls
110
+
111
+ ```bash
112
+ argus-probe run --target ... --per-run-cap 0.50
113
+ ```
114
+
115
+ Runs that would exceed the cap are rejected before any LLM cost is incurred, in both server and local mode (exit code 4).
116
+
117
+ ## Subcommands
118
+
119
+ ```
120
+ argus-probe init Interactive target.json generator
121
+ argus-probe validate-target Sanity-check target reachability
122
+ argus-probe list-probes List probe ids available to your account
123
+ argus-probe run Submit a run + write the report
124
+ argus-probe report Re-render an existing run's report
125
+ argus-probe coverage Show what the probe library covers; asks the server, runs no probes
126
+ ```
127
+
128
+ Each command's `--help` lists its flags.
129
+
130
+ ## License
131
+
132
+ Apache-2.0 — see [LICENSE](https://github.com/gy15901580825/Argus/blob/main/cli/LICENSE). Copyright © 2026 Veyon Solutions.
133
+
134
+ ## Security
135
+
136
+ To report a vulnerability: see [SECURITY.md](https://github.com/gy15901580825/Argus/blob/main/cli/SECURITY.md).
137
+
138
+ ## Links
139
+
140
+ - Documentation: [docs/onboarding](https://github.com/gy15901580825/Argus/blob/main/docs/onboarding/)
141
+ - Argus repo: https://github.com/gy15901580825/Argus
@@ -0,0 +1 @@
1
+ __version__ = "0.1.1"
@@ -0,0 +1,28 @@
1
+ """argus-probe entry point."""
2
+
3
+ import click
4
+
5
+ from argus_probe.cmd_init import init_command
6
+ from argus_probe.cmd_run import cmd_run
7
+ from argus_probe.cmd_report import cmd_report
8
+ from argus_probe.cmd_list_probes import cmd_list_probes
9
+ from argus_probe.cmd_coverage import cmd_coverage
10
+ from argus_probe.cmd_validate_target import cmd_validate_target
11
+
12
+
13
+ @click.group()
14
+ @click.version_option()
15
+ def main():
16
+ """Argus red-team CLI."""
17
+
18
+
19
+ main.add_command(init_command, "init")
20
+ main.add_command(cmd_run, "run")
21
+ main.add_command(cmd_report, "report")
22
+ main.add_command(cmd_list_probes, "list-probes")
23
+ main.add_command(cmd_coverage, "coverage")
24
+ main.add_command(cmd_validate_target, "validate-target")
25
+
26
+
27
+ if __name__ == "__main__":
28
+ main()
@@ -0,0 +1,70 @@
1
+ """Minimal httpx wrapper around the Argus REST API."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import time
6
+
7
+ import httpx
8
+
9
+
10
+ def post_run(api_url: str, token: str, body: dict, timeout: float = 30.0) -> dict:
11
+ with httpx.Client(timeout=timeout) as client:
12
+ resp = client.post(f"{api_url}/api/v1/redteam/runs", json=body, headers={"x-api-token": token})
13
+ resp.raise_for_status()
14
+ return resp.json()
15
+
16
+
17
+ def get_run(api_url: str, token: str, run_id: str, timeout: float = 30.0) -> dict:
18
+ with httpx.Client(timeout=timeout) as client:
19
+ resp = client.get(f"{api_url}/api/v1/redteam/runs/{run_id}", headers={"x-api-token": token})
20
+ resp.raise_for_status()
21
+ return resp.json()
22
+
23
+
24
+ def get_report(api_url: str, token: str, run_id: str, format: str, timeout: float = 30.0) -> str:
25
+ with httpx.Client(timeout=timeout) as client:
26
+ resp = client.get(
27
+ f"{api_url}/api/v1/redteam/runs/{run_id}/report",
28
+ params={"format": format},
29
+ headers={"x-api-token": token},
30
+ )
31
+ resp.raise_for_status()
32
+ return resp.text
33
+
34
+
35
+ def poll_until_complete(api_url: str, token: str, run_id: str, interval: float = 2.0, max_wait: float = 1800.0) -> dict:
36
+ deadline = time.monotonic() + max_wait
37
+ while time.monotonic() < deadline:
38
+ run = get_run(api_url, token, run_id)
39
+ if run["status"] in ("completed", "failed", "cancelled"):
40
+ return run
41
+ time.sleep(interval)
42
+ raise TimeoutError(f"run {run_id} did not complete within {max_wait}s")
43
+
44
+
45
+ def list_probes(api_url: str, token: str, timeout: float = 30.0) -> list[str]:
46
+ """GET /api/v1/redteam/probes (TBD endpoint — Plan 3 Task 14 adds it)."""
47
+ with httpx.Client(timeout=timeout) as client:
48
+ resp = client.get(f"{api_url}/api/v1/redteam/probes", headers={"x-api-token": token})
49
+ resp.raise_for_status()
50
+ return resp.json()["probe_ids"]
51
+
52
+
53
+ def get_coverage(api_url: str, token: str, timeout: float = 30.0) -> dict:
54
+ """GET /api/v1/redteam/coverage — what the probe library covers. Runs no probes, costs nothing."""
55
+ with httpx.Client(timeout=timeout) as client:
56
+ resp = client.get(f"{api_url}/api/v1/redteam/coverage", headers={"x-api-token": token})
57
+ resp.raise_for_status()
58
+ return resp.json()["coverage"]
59
+
60
+
61
+ def get_diff(api_url: str, token: str, run_id: str, base: str, timeout: float = 30.0) -> dict:
62
+ """GET /api/v1/redteam/runs/{run_id}/diff — failures new, fixed or unchanged versus the latest run on `base`."""
63
+ with httpx.Client(timeout=timeout) as client:
64
+ resp = client.get(
65
+ f"{api_url}/api/v1/redteam/runs/{run_id}/diff",
66
+ params={"base": base},
67
+ headers={"x-api-token": token},
68
+ )
69
+ resp.raise_for_status()
70
+ return resp.json()