Cognitive Code Security Engine - Self-evolving, AI-powered threat detection
Project description
🧠 NeuralSpace – Cognitive Security Universe
NeuralSpace is a self-organizing, zero‑trust security mesh for code. It combines a Covalent Tree (self‑evolving topology), a Hive Mind (emergent intelligence), AST/CFG Data‑Flow Analysis, and a Zero‑Trust Security Mesh (RSA 2048 signing) into a single ultra‑lightweight (~8 KB) system.
📌 Version 4.1.0 — Ship pre‑trained weights, fixed
importlib+chr()evasion, raised default threshold to0.25, added--thresholdCLI flag.
🔥 The Problem We Solve
| Current Tool | Limitation | NeuralSpace Advantage |
|---|---|---|
| Traditional AV | Relies on known signatures. | Blocks zero‑day obfuscated threats. |
| SAST (SonarQube) | 99.5% false positives. | Contextual detection + Taint Analysis. |
| Transformer Models | Huge, slow, cloud‑dependent. | Lightweight (~8 KB), runs instantly on CPU. |
| File Watchers | React to files, don't understand content. | Routes files dynamically into a living knowledge tree. |
✨ Key Features (v4.1.0)
- 🧬 Self‑Evolving Topology – The Covalent Tree spawns new branches anticipatorily when it detects structural drift (drift velocity > 0.5).
- 🌊 True Data‑Flow Analysis – Tracks tainted input (
input(),sys.argv) to dangerous sinks (exec,eval,os.system). Catchesimportlib+chr()evasions. - 🔒 Zero‑Trust Security Mesh – All threat reports are cryptographically signed with RSA 2048. Nodes maintain a public key registry (PKI) and earn trust over time.
- 🧠 Hive Mind (Emergent Intelligence) – Multiple agents communicate and form a consensus on threats (consensus ≥ 0.7).
- 🛡️ Adversarial Robustness – Trained on obfuscated variants (
getattr, string‑concat,__import__,chr()). - 🌍 Polyglot – Scans Python, JavaScript, TypeScript, Go, and Rust (Tree‑Sitter AST parsing).
- ⚡ Ultra‑Lightweight & Local – ~8 KB model, trains in <60 seconds on CPU.
- 🔧 CLI Configurable – New
--thresholdflag to adjust sensitivity. - 🤖 GitHub App Integration – Auto‑scans Pull Requests and posts comments.
🏗️ How It Works
- Tokenization + Data‑Flow – Code is parsed via Tree‑Sitter AST; data‑flow tracks tainted input to dangerous sinks.
- Routing – The vector descends the Covalent Tree. If it matches a child node (cosine similarity > 0.85), it dives deeper.
- Hive Mind Consensus – All active nodes vote on the threat. The collective decision overrides individual errors.
- Judgment – The terminal node's
PureNeuralAtomcomputes Sentinel (S) and Logic (L) scores. - Enforcement – If
S > threshold(default 0.25) orL < 0.2, the file is quarantined and cryptographically reported. - Evolution – If the file is allowed but deviates significantly (drift velocity > 0.5), the tree anticipatorily fractures and spawns a new child node.
🚀 Quick Start
Installation (One Command)
pip install neuralspace-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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuralspace_ai-4.1.0.tar.gz.
File metadata
- Download URL: neuralspace_ai-4.1.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2490edb1c8121832471f142e7d86a3b0b180be06d294c123756f6ddc865b7575
|
|
| MD5 |
2ec9550c3f74f7d0df0e70b357fdd336
|
|
| BLAKE2b-256 |
cb40da00f3cc8dcfa3707f9d4e5640b29c0b2a028af48c9f00181d5336fed851
|
File details
Details for the file neuralspace_ai-4.1.0-py3-none-any.whl.
File metadata
- Download URL: neuralspace_ai-4.1.0-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56b2e908aa90e40159cf61e9ea14063460023904d17671b529ee791c24518641
|
|
| MD5 |
d25ab7a1327a2ca12fda43dca495980f
|
|
| BLAKE2b-256 |
492b2dd1a7a2457c2200c0cfddc6785447bdff143db035948ae9e6765a0134b0
|