
项目说明
Defensi Toolkit
A comprehensi defensi toolkit designed for system hardening, monitoring, and threat detection in authorized security operations.
CRITICAL LEGAL DISCLAIMER
THIS TOOLKIT IS PROVIDED FOR AUTHORIZED DEFENSI OPERATIONS AND SYSTEM ADMINISTRATION PURPOSES ONLY.
Legal Responsibility
You are solely responsible for ensuring you ha authorization before using any tool in this toolkitUnauthorized access to computer systems is illegal under laws including: - Computer Fraud and Abuse Act (CFAA) - United States
- Computer Misuse Act - United Kingdom
- Similar cybercrime legislation in your jurisdiction
Criminal penalties may include substantial fines and imprisonmentCi may result from damages caused by unauthorized access or modificationRequired Authorization
Before using ANY function in this toolkit, you MUST have:
Written permission from the system ownerAuthority to monitor and administer the systemsUnderstanding that operations are lawful in your jurisdictionProper documentation of authorizationPermitted Uses
System administration on owned or authorized systemsSecurity monitoring and log analysis assessment and hardeningAuthorized security auditsThreat detection and responseEducational purposes in controlled lab enProhibited Uses
Unauthorized access to systemsUnauthorized monitoring or surTampering with system files without permissionCircum security controls without authorizationModifying audit logsAny use on systems you do not own or ha written authorization to accessDisclaimer of Liability
THE AUTHOR AND CONTRIBUTORS DISCLAIM ALL LIABILITY FOR:
Unauthorized access or use of this toolkitDamages caused by misuse of these toolsAny illegal acti conducted using this softwareSystem damage, data loss, or service interruptionCivil or criminal consequences of unauthorized testingBy downloading and using this toolkit, you acknowledge and agree to:
1. Use this software only for lawful and authorized purposes
2. Hold harmless the authors and contributors from any liability
3. Assume full responsibility for all consequences of your actions
4. Comply with all applicable laws and regulations
Installation
Requirements
Python 3.7+Linux/macOS/WindowsAdministrator/sudo access for some featuresDependencies
Quick Setup
Features & Modules
1. Log Analysis
Parse system logs with keyword filteringCustom keyword searchingExport results to fileIdentifies errors, warnings, security events2. File Integrity Monitoring
Create baseline of file systemDetect new, modified, deleted filesReal-time monitoring with configurable intervalsHash-based integrity Change logging and reporting3. Network Monitoring
View acti connectionsIdentify associated processesMonitor network interfacesTrack connection status4. Process Monitoring
Identify high CPU usage processesIdentify high memory usage processesDisplay process ownershipSet custom thresholds5. Port Blocking
Block ports Windows and Linux supportImmediate effect6. Password Strength Audit
E password strengthCheck for common passwords character complexityRecommend impro7. YARA Malware Scanning
Pattern-based malware detectionCustom YARA rules supportFile-based scanning8. System Hardening Check
file permissions (/etc/shadow, /etc/passwd)Check SSH configurationIdentify insecure settingsLinux-focused9. Malware Hash Lookup
Calculate file hashes (MD5, SHA1, SHA256)Compare against known malware databaseSupport for custom hash databases10. Intrusion Detection
Analyze authentication logsDetect brute force attemptsThreshold-based alertingTime-window analysis11-20. System Auditing
Check open portsList running servicesEnumerate user accountsCheck file permissions SSH configurationFirewall statusPending updatesSuspicious processesCron jobsStartup scripts21. Generate Full Security Report
Comprehensi reportCombines all checksExportable to fileIncludes system informationUsage Examples
Example 1: Monitor File Changes
Example 2: Analyze Auth Logs
Example 3: Detect Brute Force Attacks
Example 4: System Security Audit
Example 5: Check Running Processes
Installation of Optional Dependencies
For YARA Scanning
For Process Monitoring (psutil)
Complete Installation
Operational Security (OpSec) Notes
When Using for System Administration:
1. Document all audit acti
2. Maintain proper authorization records
3. Enable logging of your administrati
4. Review logs regularly for unauthorized changes
5. Keep baseline snapshots for comparison
6. Store reports securely
7. Use strong authentication
8. Limit access to sensiti files
9. Regularly update security rules
10. Backup critical system configurations
Troubleshooting
Permission Denied Errors
Module Import Errors
psutil Not Found
YARA Not Found
File Permission Issues on Linux
File Structure
Requirements File (requirements.txt)
Features Summary
| Module | Function | Requires Root/Admin |
|--------|----------|--------------------|
| Log Analysis | Parse system logs | NO |
| File Integrity | Monitor file changes | YES (for /etc) |
| Network Monitor | View connections | NO |
| Process Monitor | Check processes | NO |
| Port Blocking | Firewall rules | YES |
| Password Audit | Check password strength | NO |
| YARA Scan | Malware detection | NO |
| Hardening Check | System security | YES |
| Hash Lookup | File hash comparison | NO |
| Intrusion Detection | Analyze auth logs | YES |
| Port Enumeration | List listening ports | NO |
| Service Check | Running services | NO |
| User Accounts | List system users | NO |
| Permissions Check | World-writable files | YES |
| SSH Config | SSH security | NO |
| Firewall Status | Check firewall rules | YES |
| Updates | Pending security updates | NO |
| Suspicious Process | Find malware tools | NO |
| Cron Jobs | List scheduled tasks | YES |
| Startup Scripts | Check boot-time tasks | YES |
Best Practices
During Monitoring
Review logs regularlyMaintain baseline snapshotsDocument all findings legitimate changesKeep audit trailUse proper access controlsMonitor for anomaliesAfter Detection
In thoroughlyContain the threatCollect ePreserve logsRestore from clean backupApply security patchesUpdate detection rulesGeneral Security
Keep baselines currentUpdate malware signaturesReview cron jobs regularlyCheck startup scriptsMonitor suspicious processesMaintain file permissionsEnable system auditingSupport & Contribution
For issues, questions, or impro:
Check existing issuesProvide detailed reproduction stepsInclude your en detailsRespect responsible disclosure practicesLicense
See LICENSE file for details.
Contributors
josephelliottwest3-blip
Acknowledgments
This toolkit is designed for system administrators and security operations teams. Defensi helps protect systems and detect unauthorized changes.
Final Warning
UNAUTHORIZED ACCESS TO COMPUTER SYSTEMS IS A FEDERAL CRIME
Using this toolkit without proper authorization can result in:
Federal prosecutionUp to 10 years imprisonment (CFAA )Substantial finesCiProfessional consequencesALWAYS OBTAIN WRITTEN AUTHORIZATION BEFORE ANY SECURITY OPERATIONS
---
Last Updated: September 2026
: 1.0
Status: Acti
Remember: With great power comes great responsibility. Use ethically and legally.
项目信息
开发语言:Python
Star 数:1
技术要点
该项目属于防护思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Comprehensive defensive security and system hardening toolkit for authorized security operations展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。