codeark-pitax
Deterministic prompt-injection scanner (PITAX rules): scan repositories, documents and untrusted text for AI-assistant hijacking patterns — invisible Unicode, trojan source, instruction overrides, encoded payloads. Zero dependencies, zero network, zero model calls; everything stays on your machine.
Part of CodeRisk Arcanum (https://github.com/a9320/arcanum-spark). Source / issues: https://github.com/a9320/arcanum-spark
Usage
# scan a repository (or a single file) — reports land in ./pitax-report
codeark-pitax ./your-repo --formats html,json --out ./pitax-report
# CI gate: exit 3 when anything at or above `high` is found
codeark-pitax ./your-repo --fail-on high
Exit codes (CI gating)
| Code | Meaning |
|---|---|
| 0 | scan finished, nothing at/above the threshold |
| 1 | bad arguments, or the target path does not exist |
| 3 | findings at/above the threshold (--fail-on / --fail-on-findings) |
--formats json,sarif,markdown,html writes report artifacts; sarif is accepted by
GitHub code scanning. Nothing is uploaded and no model is called.
# .github/workflows/pitax.yml
- run: pip install "codeark-pitax>=0.2.3"
- run: codeark-pitax . --fail-on high --formats sarif,json
- uses: github/codeql-action/upload-sarif@v3
if: always()
with: { sarif_file: pitax-report/report.sarif }
Boundary: a rule match is a report, not a confirmed attack. Output is advisory and the tool never modifies or deletes files. Directory scans never follow symlinks or junctions and are bounded (file count / depth / total bytes), and a partial scan declares what stopped it.
Attribution
The PITAX rule set is derived from the Prompt Injection Taxonomy v1.6.1 by Jason Haddix / Arcanum (CC BY 4.0).
License: MIT (same as arcanum-spark).
Metadata
Release files for codeark-pitax 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codeark_pitax-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for codeark_pitax-0.2.3-py3-none-any.whl |
Release files / codeark_pitax-0.2.3-py3-none-any.whl
| Download URL | codeark_pitax-0.2.3-py3-none-any.whl |
|---|---|
| Size | 56.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1a6501bf24014e3e6f49443e5fdad8bf0c28cbb46e820b89d5210636963d815
|
|
BLAKE2b-256 checksum How to use checksums |
d53679a163704e9c027aa6c1ed24cfe2d1d052a7944256b288d9cc7c1551e218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for codeark-pitax 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.