Skip to content

About

Red Team log sanitization tool (Python & Binary)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

SentinelMask 🛡️

A lightweight, standalone privacy protection tool for Red Team operations and log analysis.

SentinelMask is designed to automate the sanitization of sensitive information (PII) from log files and text data. It ensures compliance and operational security by redaction before data exfiltration or sharing.

🚀 Features

  • Zero Dependency: Compiled as a standalone Linux binary (ELF). No Python environment required on the target machine.
  • Regex-Powered Engine: Accurately detects and masks:
    • Mobile Phone Numbers (CN)
    • IPv4 Addresses
    • Email Addresses
    • ID Card Numbers
  • Detailed Reporting: Provides execution statistics regarding masked entities.
  • Pipeline Friendly: Supports command-line arguments for seamless integration into automated workflows.

🛠️ Installation & Usage

Option 1: Using the Standalone Binary (Recommended for Targets)

Just drop the binary onto any Linux machine and run it.

# Make it executable
chmod +x dist/sentinel_v2

# Run sanitization
./dist/sentinel_v2 -i target.log -o cleaned.log

Option 2: Running from Source (For Development)

Requires Python 3.x.

python3 sentinel_v2.py -i target.log -o cleaned.log

📝 Example Output

Raw Input:

User admin (13800138000) login failed from 192.168.1.5. Email: [email protected]

Cleaned Output:

User admin ([PHONE_MASKED]) login failed from [IPV4_MASKED]. Email: [EMAIL_MASKED]

⚠️ Disclaimer

This tool is intended for legal security research and authorized system administration purposes only.


Created by j32ryc for the AI & Cybersecurity Portfolio.

About

Red Team log sanitization tool (Python & Binary)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages