Skip to main content

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codeark-pitax 0.2.4
File Size Uploaded Provenance Actions
codeark_pitax-0.2.4.tar.gz 52.8 kB Without provenance Details for codeark_pitax-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codeark-pitax 0.2.4
File Interpreter ABI Platform Actions
codeark_pitax-0.2.4-py3-none-any.whl Python 3 none any Details for codeark_pitax-0.2.4-py3-none-any.whl

Total release size: 111.9 kB

Release files / codeark_pitax-0.2.4.tar.gz

Download URL codeark_pitax-0.2.4.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b2bc11f6036705d27edce06c270b129753a9878885dea3465a2ba7848e7a40da
BLAKE2b-256 checksum
How to use checksums
82ed58ed82085711c7ba3ef8a48af8c1b1d60ffd3d23e460b047afcf5631e858
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}

Release files / codeark_pitax-0.2.4-py3-none-any.whl

Download URL codeark_pitax-0.2.4-py3-none-any.whl
Size 59.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91545e06c6313f37de0257fd9b377e9a27793a19e45bf8959fa0f3436e570f81
BLAKE2b-256 checksum
How to use checksums
c1b3a7dafc6f13379e4c15e4cd3af5787c7cfbdfccf20a8f54311d2f8632e77f
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.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page