___ ___ __ __ _____ ___
/ __\ /___\/\ /\/__\/__\/__ \/ \
/ / // //\ \ / /_\ / \// / /\/ /\ /
/ /___/ \_// \ 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.