AI Automated Infrastructure Vulnerability Scanner and Patching Tool with Ethereum and SIEM Integration
This is an advanced security scanning and vulnerability patching recommendation tool designed to help users detect vulnerabilities in their infrastructure and web applications. It integrates multiple scanning tools like Nmap, Lynis, Naabu, Gobuster, and Bandit, along with an AI-based recommendation engine to provide intelligent patching suggestions.
- Infrastructure Scanning: Uses Nmap, Lynis, and Naabu for network and system vulnerability detection.
- Web Application Scanning: Gobuster for directory enumeration.
- Source Code Analysis: Bandit for Python security analysis.
- AI-Powered Patching Recommendations: Utilizes Groq AI to analyze scan logs and suggest mitigations.
- Detailed Reporting: Generates log files in text and HTML formats for easy analysis.
- OS: Linux (Tested on Kali Linux)
- Dependencies:
python3
pandas
nmap
lynis
naabu
gobuster
bandit
requests
- API Key: Groq API key for AI-based recommendations
- Clone the repository:
git clone https://github.com/yourusername/scandroid.git cd scandroid
- Install dependencies:
sudo apt install nmap lynis naabu gobuster bandit pip install pandas requests
- Set up API Key:
- Open
aiRecommendation.py
- Replace
{API_KEY}
with your actual Groq API key.
- Open
sudo python3 scanner.py
- Select options from the menu to perform scans.
- Logs are saved at
/home/kali/Downloads/finalScanner/reports/
.
python3 csvExtractor.py --source /path/to/logs --output_dir /path/to/output
- Extracts vulnerabilities from Lynis logs and generates CSV reports.
python3 aiRecommendation.py
- Reads scan logs and provides AI-driven security recommendations.
scandroid/
├── scanner.py # Main script for scanning
├── csvExtractor.py # Extracts vulnerabilities from logs to CSV
├── aiRecommendation.py # AI-based patch recommendations
├── README.md # Documentation
└── reports/ # Log files generated after scanning
- Plain text logs:
/home/kali/Downloads/finalScanner/reports/scanner_file.txt
- HTML reports:
/home/kali/Downloads/finalScanner/reports/scanner_file.html
- AI reports:
/home/kali/Downloads/finalScanner/aiReport/ai_report.txt
A secure and transparent system for storing and retrieving log files using Ethereum smart contracts. This project uses Web3, Solidity, and Python to interact with a local blockchain (Ganache).
source myenv/bin/activate
python3 smartContract.py
📌 Note: Copy the deployed contract address (e.g.,
0x123...
) from the output and update it insidestorage.py
.
python3 storage.py
Ensure the following dependencies are installed:
- ✅ Python
3.8+
- ✅ Node.js
v14+
- ✅
npm
- ✅ Ganache CLI (for local blockchain testing)
pip install web3 py-solc-x
sudo apt update
sudo apt install nodejs npm
node -v
npm -v
npm install -g ganache
ganache --port=7545
Open a new terminal for the next steps.
-
Generate Contract Address
Run the following to deploy the smart contract:
python3 smartContract.py
This will output a contract address. Copy this address.
-
Store Scanner Logs
Paste the generated contract address into the
storage.py
script and run:python3 storage.py
This will store your scanner logs on the blockchain.
-
Fetch Hashed Stored Logs
Make sure the contract address is updated in
get_hashed_logs.py
and run:python3 get_hashed_logs.py
This will fetch and display the hashed log entries from the blockchain.
.
├── smartContract.py # Smart contract deployment logic
├── storage.py # Logs storage to blockchain
├── fetch_logs.py # Read logs from local files
├── fetch_stored_logs.py # Retrieve stored logs from blockchain
├── get_hashed_logs.py # Generate & verify log hashes
├── LogStorage.sol # Solidity smart contract
└── README.md # This file
❌ Error | ✅ Solution |
---|---|
Connection refused |
Ensure Ganache CLI is running properly |
Module not found |
Reinstall Python dependencies |
Permission denied |
Use sudo if accessing system logs |
Empty results |
Confirm that the contract is deployed |
This project is licensed under the MIT License.
- Add support for more vulnerability scanning tools.
- Implement automated patching.
- Enhance AI recommendations with additional machine learning models.
- Agastsya Joshi - Co-founder
- Karman Arora - Co-founder
- Nitin Dogra - Co-founder
- Open to Contributions