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.5"
- 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.5

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.5
File Size Uploaded Provenance Actions
codeark_pitax-0.2.5.tar.gz 54.3 kB Without provenance Details for codeark_pitax-0.2.5.tar.gz

Built distribution (wheel)

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

Total release size: 114.5 kB

Release files / codeark_pitax-0.2.5.tar.gz

Download URL codeark_pitax-0.2.5.tar.gz
Size 54.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e697d5aac24797c7a39c003d6e666b75de5e1a1fe4ce02d6c569c11d8668922e
BLAKE2b-256 checksum
How to use checksums
270cd1a0d0c8edba8892c6292c9feb77c277b037c130d20798242f565dd0211d
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.5-py3-none-any.whl

Download URL codeark_pitax-0.2.5-py3-none-any.whl
Size 60.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a39e7885df6aaac03124b61cfe38084feed95a979e9d467c1a43b819908395ee
BLAKE2b-256 checksum
How to use checksums
45a34154e84757416bf0a718d207869934c43915bea3d24c06856ace49952922
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.5

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