Skip to content

KaruG1999/Sigil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฎ SIGIL โ€” Arcane Node

Arcane Intelligence for Code Integrity

SIGIL is an AI-powered, heuristic-driven code scanner designed to protect developers from malicious repositories, suspicious dependencies, and hidden security threats โ€” especially targeting fake job offers and fraudulent bounties.

Inspired by arcane sigils and futuristic Web3 aesthetics, SIGIL provides a clear, actionable security report before you ever run the code.


Trust the Sigil. Verify before you clone.

โœจ What is SIGIL?

SIGIL is a developer security companion that analyzes repositories using:

  • ๐Ÿง  AI-assisted pattern recognition
  • โšก Heuristic threat detection
  • ๐Ÿ”’ Dependency & script inspection
  • ๐Ÿชฌ SIGIL Score โ€” a clear risk assessment (LOW / MEDIUM / HIGH)
  • ๐Ÿ“Š Static analysis only โ€” no code execution for maximum safety

Built for developers who want quick, meaningful insights without deep security knowledge.


๐Ÿš€ Features (MVP)

๐Ÿ”ธ Static Supply-Chain Security Checks

Detects:

  • Suspicious install/postinstall scripts (curl, wget, chmod +x, rm -rf)
  • Dangerous or deprecated dependencies
  • High-entropy secrets (private keys, mnemonics, API tokens)
  • Wallet drainer patterns
  • Obfuscated or unusual JavaScript
  • Dangerous files (.pem, .env, id_rsa, .ps1, .bat, binaries)
  • Typosquatting in package names
  • Hidden folders and unexpected artifacts

๐Ÿ”ธ Human-Readable Risk Report

  • Risk level: LOW / MEDIUM / HIGH
  • Detailed list of findings with severity
  • File locations and context
  • AI-generated summary explaining risks in plain language
  • Recommended actions for developers

๐Ÿ”ธ Modern UI & Developer Experience

  • Elegant landing page with arcane-tech aesthetic
  • Clean scanning flow with real-time feedback
  • Error handling & validation
  • Responsive design
  • Demo repositories for testing

๐Ÿงฉ Architecture Overview (MVP)

Frontend (Next.js) โ†’ API (Express) โ†’ @sigil/core โ†’ Scan Results

Frontend

  • Repository URL input
  • /scan page with loading states
  • Results renderer with risk badges
  • Error handling

API Gateway

  • Validates GitHub URLs
  • Calls scanRepository() from core
  • Returns structured JSON findings
  • Rate limiting and input sanitization

Core Engine (@sigil/core)

  • Reads repository files via GitHub API (no cloning)
  • Applies heuristic rules:
    • Script analysis
    • Dependency checking
    • Secret detection
    • File pattern matching
    • Entropy analysis
  • Computes risk score
  • Returns consistent output format

Important: SIGIL MVP does not execute any code from analyzed repositories. All analysis is static and safe.


๐Ÿ“ฆ Core Output Format

{
  "repo": "https://github.com/example/repo",
  "riskLevel": "HIGH",
  "score": 85,
  "findings": [
    {
      "type": "script",
      "severity": "high",
      "message": "Suspicious postinstall script detected",
      "file": "package.json",
      "details": "Contains curl command downloading from external source"
    },
    {
      "type": "secret",
      "severity": "critical",
      "message": "Possible private key detected",
      "file": ".env",
      "details": "High entropy string matching private key pattern"
    }
  ],
  "summary": "This repository contains multiple high-risk indicators including suspicious installation scripts and potential leaked credentials. Review carefully before use."
}

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Frontend Next.js 14 โ€ข TailwindCSS โ€ข Shadcn/UI
Backend Node.js โ€ข Express
Core Engine TypeScript โ€ข Heuristics + AI
CLI Node + Commander
Monorepo PNPM + Turborepo
Analysis Static file analysis โ€ข GitHub API

๐Ÿ“ฆ Installation

Web Interface

pnpm install
pnpm dev

Access at: http://localhost:3000

CLI Tool

SIGIL includes a powerful command-line interface for scanning repositories directly from your terminal.

Installation:

pnpm install -g sigil-cli

Usage:

# Scan a GitHub repository
sigil scan https://github.com/user/repo

# Scan a local directory
sigil scan ./my-project

# Get help
sigil --help

CLI Features:

  • ๐Ÿš€ Fast, lightweight scanning
  • ๐Ÿ“Š Formatted risk reports in terminal
  • ๐ŸŽจ Color-coded severity levels
  • ๐Ÿ“ Detailed findings with file locations
  • โšก Perfect for CI/CD integration

๐Ÿงช Testing with Demo Repositories

SIGIL includes demo repositories for testing:

  1. sigil-demo-clean โ€” Safe repository with no issues
  2. sigil-demo-suspicious โ€” Contains suspicious postinstall script
  3. sigil-demo-malicious โ€” Multiple high-risk indicators (leaked keys, obfuscation)

๐Ÿงฉ Project Structure

sigil/
โ”‚
โ”œโ”€โ”€ apps/
โ”‚   โ”œโ”€โ”€ web/          โ†’ Next.js frontend
โ”‚   โ””โ”€โ”€ api/          โ†’ Express REST API
โ”‚
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ core/         โ†’ Analysis engine + heuristics
โ”‚   โ””โ”€โ”€ cli/          โ†’ CLI tool
โ”‚
โ””โ”€โ”€ turbo.json        โ†’ Monorepo configuration

๐Ÿ—บ๏ธ Roadmap

โœ… MVP (Current)

  • Static analysis engine
  • GitHub repository scanning
  • Heuristic detection rules
  • Risk scoring system
  • Web interface
  • Functional CLI tool (scan repos from terminal)

๐Ÿ”ฎ Future (SIGIL Pro)

Phase 1: Enhanced Analysis

  • Sandbox execution environment (Docker/QEMU)
  • Dynamic behavior monitoring
  • Network traffic capture (pcap)
  • Filesystem changes tracking
  • Syscall analysis

Phase 2: Advanced Security

  • SAST integration (Slither, Semgrep, Mythril)
  • MISP threat intelligence
  • MITRE ATT&CK mapping
  • Vulnerability database correlation

Phase 3: Web3 Integration

  • On-chain verification (SIGIL Seal)
  • Smart contract auditing
  • Wallet interaction analysis
  • Blockchain attestation (ERC-721 / Stellar)

Phase 4: Enterprise Features

  • Team collaboration
  • CI/CD integration
  • API for automated scanning
  • Custom rule creation
  • Advanced reporting

๐Ÿ›ก๏ธ Security Philosophy

SIGIL is designed with security-first principles:

  • No code execution in MVP โ€” zero risk of RCE
  • Read-only analysis โ€” no modifications to repositories
  • Input validation โ€” strict URL and size limits
  • Rate limiting โ€” protection against abuse
  • Privacy-focused โ€” no storage of analyzed code
  • Transparent โ€” open-source heuristics

๐Ÿค Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.


๐Ÿชฌ License

MIT License โ€” free to use, modify, and expand.


ยฉ 2025 SIGIL โ€” Arcane Intelligence for Code Integrity
Trust the Sigil. Verify before you clone.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors