-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the official wiki for CyberShield.
CyberShield is a security-focused C++ project designed for encrypted file handling, runtime interception, and integrity-oriented defensive controls on POSIX-compatible systems.
This wiki provides a central place for understanding the project structure, build flow, usage, design ideas, and security-related behavior.
CyberShield combines multiple defensive concepts into one project:
- modern authenticated file encryption
- syscall-level interception
- runtime access monitoring
- integrity-oriented execution logic
- short-lived cryptographic handling
- defensive experimentation for local system protection
The project is intended for research, learning, security experimentation, and practical demonstrations of system-level defensive techniques.
The main binary can be used to encrypt files directly from the command line.
Example:
./CyberShield /etc/passwdThis produces an encrypted output file such as:
passwd.encCyberShield can also be used as a shared object through LD_PRELOAD to monitor or restrict selected file access behavior in a target process.
Example:
sudo LD_PRELOAD=./CyberShield.so /usr/sbin/sshdThis mode is useful for runtime monitoring and defensive interception experiments.
-
Authenticated encryption
- Protects file contents using modern cryptographic primitives
-
Runtime interception
- Monitors selected process behavior through preload-based hooking
-
Integrity-focused design
- Adds defensive logic around sensitive access paths
-
Self-test support
- Includes a built-in test mode for quick validation
-
Research-friendly structure
- Suitable for security experimentation and future hardening work
CyberShield targets POSIX-compatible systems.
Install dependencies:
sudo apt update
sudo apt install -y g++ libsodium-dev libssl-dev gitClone the repository:
git clone https://github.com/thesmartshadow/CyberShield.git
cd CyberShieldBuild using the Makefile:
make buildOther build targets:
make debug
make sanity
make cleanManual build:
g++ -std=c++20 -fPIC -shared -o CyberShield.so cyber_shield.cpp -ldl -lsodium
g++ -std=c++20 -o CyberShield cyber_shield.cpp -lsodium -ldl./CyberShield --self-test./CyberShield /etc/passwdLD_PRELOAD=./CyberShield.so nano /etc/shadowIf the defensive interception layer is active, access should be denied.
Encrypted files use the .enc extension.
Current format:
- 4-byte magic:
CSH1 - 1-byte version:
0x01 - 1-byte nonce length
- nonce bytes
- ciphertext bytes
Output file permissions are restricted to:
0600
CyberShield is built around a simple idea:
protecting sensitive data should not stop at encryption alone
The project explores how encryption, process behavior control, and runtime defensive logic can work together in a lightweight security-oriented workflow.
CyberShield may be useful for:
- local security research
- defensive proof-of-concept development
- file protection demonstrations
- runtime hardening experiments
- educational security projects
CyberShield is an actively evolving project. Future improvements may include stronger hardening logic, broader runtime controls, and additional security-focused features.
Ali Firas (thesmartshadow) Phantom Force Team
You can expand this wiki with dedicated pages such as:
- Build Guide
- Usage Examples
- Architecture
- Encryption Format
- LD_PRELOAD Mode
- Security Notes
- Roadmap
- FAQ