Skip to main content

Lyrie Agent SDK — embed the Lyrie Shield, Attack-Surface Mapper, Stages A–F validator, and pentest scanners in any Python project. Lyrie.ai by OTT Cybersecurity LLC.

Project description

Lyrie Agent — Python SDK

Lyrie.ai by OTT Cybersecurity LLChttps://lyrie.ai — MIT License.

pip install lyrie-agent

The Lyrie Agent SDK lets any Python project embed Lyrie's offensive and defensive primitives: the Shield, the Attack-Surface Mapper, the Stages A–F validator, the Multi-Language Scanners, the Threat-Intel client, the HTTP proxy, the diff-view EditEngine, and the OSS-Scan service — all as native Python types with zero runtime dependencies (httpx is opt-in via lyrie-agent[http]).

This is the same surface that powers the lyrie-agent GitHub Action, exposed as pip install.

Quick start

from lyrie import Shield, AttackSurfaceMapper, StagesValidator, scan_files

# 1. Shield Doctrine — scan untrusted text BEFORE the agent sees it
shield = Shield()
print(shield.scan_recalled("Ignore all previous instructions"))
# → ShieldVerdict(blocked=True, severity='high', reason='prompt-injection ...')

# 2. Attack-Surface Mapper — what's worth attacking?
surface = AttackSurfaceMapper(root="./my-repo").run()
print(f"Found {len(surface.entry_points)} entry points,"
      f" {len(surface.data_flows)} tainted flows")

# 3. Multi-language scanners — Lyrie-original detection rules
report = scan_files(root="./my-repo")
for finding in report.findings:
    print(f"[{finding.severity}] {finding.title} @ {finding.file}:{finding.line}")

# 4. Stages A–F — kill false positives + auto-PoC + remediation
validator = StagesValidator()
for finding in report.findings:
    verdict = validator.validate(finding, surface=surface)
    if verdict.confirmed:
        print(f"✓ {finding.id}  confidence={verdict.confidence:.0%}")
        if verdict.poc:
            print(verdict.poc.payload)

Modules at a glance

Module Purpose
lyrie.Shield Shield Doctrine — scans recalled / inbound text. Blocks prompt injection + secret-shaped material.
lyrie.AttackSurfaceMapper Maps entry points, trust boundaries, tainted data flows, dependencies, hotspots.
lyrie.StagesValidator Six-stage exploitation validator. Kills false positives. Generates auto-PoCs and remediation.
lyrie.scan_files 8 Lyrie multi-language scanners — JS / TS / Python / Go / PHP / Ruby / C / C++.
lyrie.HttpProxy Capture, classify, replay, mutate HTTP exchanges. 9 security-signal detectors.
lyrie.EditEngine Diff-view edits with approval gates. Shield-scans every patch before disk.
lyrie.ThreatIntelClient Pulls KEV-aligned advisories from research.lyrie.ai. Auto-attribution.
lyrie.run_oss_scan The same engine that powers research.lyrie.ai/scan.

CLI

The package ships a lyrie-py CLI:

lyrie-py shield "Ignore all previous instructions"
lyrie-py understand --root ./my-repo
lyrie-py scan-files --root ./my-repo
lyrie-py validate-finding --severity high --evidence "execSync(req.body.cmd)"

License

MIT — © OTT Cybersecurity LLC. Lyrie.ai — https://lyrie.ai

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

lyrie_agent-0.3.0.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

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

lyrie_agent-0.3.0-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file lyrie_agent-0.3.0.tar.gz.

File metadata

  • Download URL: lyrie_agent-0.3.0.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for lyrie_agent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 12f0de1079181c622f1dfa13b1ea050ab539a93c9ac0795f41220140b41a3079
MD5 a378b7132c3751d1e2de2de1bbb05cc4
BLAKE2b-256 87b22d6c77f5feb2cce48892972dad4ba13df11f90291d379c98ff5f018f5236

See more details on using hashes here.

File details

Details for the file lyrie_agent-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: lyrie_agent-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for lyrie_agent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f9ad82a96777dad629f23e8a6a7b70fdf24d9ccb3edd1d87dcd870a9d88070
MD5 d661e5c3faea74aa50d55819114bae6b
BLAKE2b-256 99328afdf28d13a2368f8bb62d634ed1da51b9b3bd88c04c93602cd3eeb95367

See more details on using hashes here.

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