Skip to main content

Lightweight CLI for querying the Sphinx Scanner LLM Attack Database

Project description

Sphinx Lookup

Lightweight CLI for querying the Sphinx Scanner LLM Attack Database

Query 1900+ documented LLM/AI attacks directly from your terminal. No Docker, Redis, or Elasticsearch required — just 4 dependencies.

Installation

pip install sphinx-lookup

Quick Start

# Configure your Supabase credentials (one-time setup)
sphinx-lookup configure

# Search for attacks
sphinx-lookup search "prompt injection"

# List attacks by category
sphinx-lookup list --category jailbreak

# Show full attack details
sphinx-lookup show <attack-id>

# View statistics
sphinx-lookup stats

Commands

Command Description
configure Interactive setup for Supabase credentials
search <query> Search attacks by name or description
list List attacks with optional filters
show <id> Display full attack card (Steckbrief)
categories Show category breakdown with counts
stats Database overview statistics

Attack Categories

  • prompt_injection - Manipulating LLM behavior through crafted prompts
  • jailbreak - Bypassing safety filters and restrictions
  • adversarial_input - Inputs designed to cause unexpected behavior
  • data_extraction - Extracting training data or sensitive information
  • model_manipulation - Altering model weights or behavior
  • denial_of_service - Causing service disruption
  • privacy_attack - Violating user privacy
  • agent_manipulation - Targeting AI agents and tool use

Modalities

Filter attacks by input type: text, reasoning, vision, audio, multimodal, code

sphinx-lookup list --modality vision

Configuration

Credentials are read in this order (later overrides earlier):

  1. .env in current directory
  2. ~/.sphinx-lookup.env
  3. Environment variables (SUPABASE_URL, SUPABASE_KEY)

Requirements

  • Python 3.10+
  • Supabase project with Sphinx Scanner database

Part of Sphinx Scanner

This is the lightweight lookup CLI from the Sphinx Scanner project. For the full crawling and extraction pipeline, see the main project.

License

MIT

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

sphinx_lookup-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

sphinx_lookup-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_lookup-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for sphinx_lookup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69aad31c08d5226b5fccd1da5fe06e616591e4cd271aca76eb5a1f5d8ba9645c
MD5 7e9fe39f6adef67a129dc513ed0dce10
BLAKE2b-256 d0b573c27ea9a6b819f82412a195e4ca0a0a3b3869889ff880194b84268e8ae7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sphinx_lookup-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for sphinx_lookup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fb0ee4e68c7278ae9c2fbdb2304097e98e9f009d9de73d646ed2aa73f3d574f
MD5 c0a3f1b8cf39fece8b6f863f0e7ecbf6
BLAKE2b-256 a2a18b13ea190d6a2112a41e56e2377106320f7ee7fc36c9e1557f64ba269bcb

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