Skip to main content

KYLO 🛡️

PyPI version Python Support License: MIT Downloads

KYLO is an AI-powered security code auditor that helps developers ship safer code. It performs static analysis, detects vulnerabilities, and aligns your codebase with your project goals—all from the command line.

✨ Features

  • 🔍 AST-Based Security Scanning — Detects dangerous functions (eval, exec), SQL injection risks, and common vulnerabilities
  • 🛡️ Advanced Security Checks — Finds hardcoded secrets, weak crypto, auth risks, and more
  • 📊 Project Alignment — Validates code against your README goals and requirements
  • 🔒 Privacy-First — Encrypted local storage for sensitive data
  • 🎨 Beautiful Terminal UI — Rich, colorful output with progress indicators
  • 📈 Usage Tracking — Monitor audits and scans with built-in analytics
  • ⚡ Zero-Config — Works out of the box, no API keys required for basic scanning

🚀 Installation

Via pip (Recommended)

pip install kylo

From source

git clone https://github.com/Shizzysagacious/kylo.git
cd kylo
pip install -e .

📖 Quick Start

1. Initialize KYLO in your project

cd your-project
kylo init

This creates:

  • .kylo/ directory for state and configuration
  • README.md template (if missing)
  • Project goals tracking

2. Run a security audit

# Audit current directory
kylo audit

# Audit specific file or folder
kylo audit backend/api.py
kylo audit src/

3. Get security hardening recommendations

kylo secure backend/

4. View usage statistics

kylo stats

🔧 Configuration

Setting an Admin Token

Protect sensitive operations with an admin token:

kylo config set-admin-token

Storing API Keys (Optional)

For advanced features, you can store API keys securely:

kylo config set-api-key gemini

All keys are encrypted using hardware-bound encryption and stored in .kylo/secure/.

Environment Variables

Customize KYLO's behavior with environment variables:

# Rate limits (requests per hour)
export KYLO_RATE_LIMIT_AUDITS=100
export KYLO_RATE_LIMIT_SECURE=50

# CLI colors
export KYLO_CLI_PRIMARY_COLOR=magenta
export KYLO_CLI_ACCENT_COLOR=purple

# Logging
export KYLO_LOG_LEVEL=INFO  # DEBUG, INFO, WARNING, ERROR

🛡️ Security Checks

KYLO performs comprehensive security analysis:

Basic Checks

  • Dangerous function usage (eval, exec, pickle.loads)
  • SQL injection vulnerabilities (f-strings in queries)
  • Insecure file operations
  • Weak cryptographic functions (MD5, SHA1)

Advanced Checks (Aggressive Mode)

  • Hardcoded secrets and credentials
  • Authentication and session management risks
  • Network operation vulnerabilities
  • Data deserialization issues
  • Security-relevant code comments (TODO, FIXME, HACK)

📊 Usage Examples

Audit with verbose output

kylo -v audit backend/

Check specific security concerns

kylo secure api/auth.py

List stored API keys

kylo config list-keys

🎨 Terminal UI

KYLO features a beautiful, modern terminal interface:

██╗  ██╗██╗   ██╗██╗      ██████╗ 
██║ ██╔╝╚██╗ ██╔╝██║     ██╔═══██╗
█████╔╝  ╚████╔╝ ██║     ██║   ██║
██╔═██╗   ╚██╔╝  ██║     ██║   ██║
██║  ██╗   ██║   ███████╗╚██████╔╝
╚═╝  ╚═╝   ╚═╝   ╚══════╝ ╚═════╝ 

AI-Powered Security Code Auditor v1.0.0

🔍 Scanning files...
📂 Reading project structure...
🛡️ Running security checks...
✓ Audit complete!

Files scanned: 45
Issues found: 3

🏗️ Project Structure

your-project/
├── .kylo/
│   ├── state.json          # Audit results and history
│   ├── goals.json          # Project goals for alignment
│   ├── secure/             # Encrypted API keys (if configured)
│   │   └── humanwhocodes.enc
│   └── stats/              # Usage statistics
│       └── usage.json
└── README.md               # Your project documentation

🔐 Privacy & Security

  • Local-First: All scanning happens on your machine
  • Encrypted Storage: API keys and sensitive data are encrypted using hardware-bound keys
  • Privacy-Preserving: Usage tracking uses SHA256 hashes, not actual code
  • No Telemetry: KYLO doesn't send your code anywhere (unless you explicitly use AI features)

🤝 Contributing

Contributions are welcome! Here's how:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 Development

Setup

git clone https://github.com/yourusername/kylo.git
cd kylo
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
pip install -e .

Running Tests

python tests/run_tests.py

🗺️ Roadmap

  • Multi-language support (JavaScript, Go, Rust, TypeScript)
  • CI/CD integrations (GitHub Actions, GitLab CI, CircleCI)
  • Live monitoring dashboard
  • AI-powered deep analysis (via optional proxy service)
  • Custom rule definitions
  • Team collaboration features

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

💬 Support

Ship safer code, faster.

Metadata

Release files for kylo 1.0.0

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

Source distribution (sdist)

Source distribution for kylo 1.0.0
File Size Uploaded
kylo-1.0.0.tar.gz 23.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kylo 1.0.0
File Interpreter ABI Platform
kylo-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.9 kB

Release files / kylo-1.0.0.tar.gz

Download URL kylo-1.0.0.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
14cb893eb44c8f44c071adbf198e0bdc2370801d179693a54980abbda69b4081
BLAKE2b-256 checksum
How to use checksums
a8ad0be09915c9041d32f2b51cd217f957995d9e18ed12a64da23c788a00f7ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / kylo-1.0.0-py3-none-any.whl

Download URL kylo-1.0.0-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
485060eb671f8d061a2eaa3a7dea36d765c687f5e0f30482dc2e16c4e06101b2
BLAKE2b-256 checksum
How to use checksums
4af971f1413a6786bbce160366be0a5b532277037539a8778ddaa795fda7a340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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