๐ฌ NullSec KernSpy
February 27, 2026 ยท View on GitHub
Secure Linux Kernel Module Analyzer
Memory-safe kernel module inspection with defense-in-depth architecture
Features โข Installation โข Usage โข Security
๐ฏ Overview
NullSec KernSpy is a Secure Linux kernel module analyzer written in Go. It provides deep inspection of loaded kernel modules with comprehensive security features to prevent exploitation during analysis.
โจ Features
- ๐ Module Analysis - Comprehensive kernel module inspection
- ๐ Hash Verification - SHA256 integrity checks for module files
- ๐ก๏ธ Privilege Verification - Validates proper permissions before operations
- โก Concurrent Scanning - Go's goroutines for parallel analysis
- ๐ Memory-Safe - Go runtime prevents memory corruption
- ๐ Detailed Reports - Module metadata, dependencies, and signatures
๐ก๏ธ Security Features
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ NullSec KernSpy v2.0.0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ Input Validation & Sanitization โ
โ โ Privilege Verification โ
โ โ Rate Limiting on Operations โ
โ โ Memory-Safe by Design (Go Runtime) โ
โ โ Defense-in-Depth Architecture โ
โ โ Path Traversal Protection โ
โ โ Null Byte Injection Prevention โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ Installation
From Source
# Clone the repository
git clone https://github.com/bad-antics/nullsec-kernspy.git
cd nullsec-kernspy
# Build with optimizations
go build -ldflags="-s -w" -o nullsec-kernspy kernspy.go
# Install system-wide (optional)
sudo mv nullsec-kernspy /usr/local/bin/
Requirements
- Go 1.21 or later
- Linux kernel with
/proc/modulesaccess - Root privileges for full functionality
๐ Usage
# List loaded kernel modules
sudo ./nullsec-kernspy --list
# Analyze specific module
sudo ./nullsec-kernspy --analyze <module_name>
# Generate integrity report
sudo ./nullsec-kernspy --report --output modules.json
# Check module signatures
sudo ./nullsec-kernspy --verify-signatures
# Compare against baseline
sudo ./nullsec-kernspy --baseline baseline.json --diff
Command Line Options
| Flag | Description |
|---|---|
--list | List all loaded kernel modules |
--analyze <name> | Deep analyze specific module |
--report | Generate comprehensive report |
--verify-signatures | Check module cryptographic signatures |
--baseline <file> | Compare against known-good baseline |
--output <file> | Output file for reports |
--verbose | Enable verbose output |
--version | Show version information |
๐ Output Example
โโโ โโโโโโโโโโโโโโโโโโ โโโโ โโโโโโโโโโโโโโโโโโ โโโ โโโ
โโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโ
โโโโโโโ โโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโ
โโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโ
โโโ โโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโโ โโโ
โโโ โโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโ โโโ
bad-antics โข Kernel Module Analyzer
[*] Scanning /proc/modules...
[+] Found 142 loaded modules
[*] Analyzing module: nvidia
โโโ Size: 51,396,608 bytes
โโโ Dependencies: drm, i2c_core
โโโ State: Live
โโโ Hash: a7b8c9d0e1f2...
โโโ Signed: Yes (NVIDIA Corporation)
๐ Security Considerations
- Always run with minimal required privileges
- Validate output before automated processing
- Use baselines from trusted sources
- Report suspicious modules to security team
๐ License
NullSec Proprietary License - See LICENSE file for details.
๐ค Author
bad-antics
- GitHub: @bad-antics
- Website: bad-antics.github.io
- Twitter: x.com/AnonAntics
Part of the NullSec Security Framework
"Memory-safe kernel analysis for the paranoid"