https://github.com/lucianoscarpaci/logspear
Smart Parsing. Human Understanding.
https://github.com/lucianoscarpaci/logspear
chainlit fiu hackathon langchain miami
Last synced: 3 months ago
JSON representation
Smart Parsing. Human Understanding.
- Host: GitHub
- URL: https://github.com/lucianoscarpaci/logspear
- Owner: lucianoscarpaci
- License: mit
- Created: 2026-03-20T03:59:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-20T23:00:42.000Z (3 months ago)
- Last Synced: 2026-03-21T11:04:16.075Z (3 months ago)
- Topics: chainlit, fiu, hackathon, langchain, miami
- Language: Python
- Homepage:
- Size: 546 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LogSpear
**IoT Botnet Detection & Forensic Analysis Tool**
A forensic tool designed for SOC Analysts to identify suspicious IoT devices involved in botnets through intelligent log analysis.

305 Hackathon Miami March. 2026
Track #1 - Hackathon Competition - General Build
Track #2 - Business Venture Arena Competition
Opt-in Challenge #1
Opt-in Challenge #2
Opt-in Challenge #3
## Inspiration
This forensic tool was designed for SOC Analysts who want to find suspicious IoT devices that have been used in Botnets through their log scans. The faster the SOC can find the infected IoT devices such as CCTV's and EV charging stations on the network, they can prevent future devices from becoming infected.
## What it does
An LLM-powered incident summarizer. Users upload their log files to the chatbot interface to find the suspicious IP, Machine Information, Country of where the botnet is from, and a visualization in a graph of the botnet-like devices connected to it.
## How we built it
We built it using an AI Agent with Chainlit, OpenAI API, and LangChain.
## Key Features
- **IoT Device Detection**: Identifies suspicious IoT devices (CCTV cameras, EV charging stations, etc.) used in botnets
- **Comprehensive Analysis**: Extracts suspicious IP addresses, machine information, and country of origin
- **Visual Intelligence**: Graph visualization showing botnet-like devices and their connections
- **Chatbot Interface**: User-friendly Chainlit interface for uploading and analyzing log files
- **Fast Threat Detection**: Helps SOCs neutralize threats before additional devices become infected
## Challenges we ran into
The main challenge was setting up Chainlit web interface with langchain and coming up with the correct log files to analyze.
## Accomplishments that we're proud of
I am proud of helping Cybersecurity Analysts find these networks before they form and neutralize the threat before future devices get infected.
## What we learned
I learned how to use chainlit and langchain to help cybersecurity SOCs.
## Tech Stack
- **LLM Framework**: LangChain
- **Interface**: Chainlit
- **Language**: Python
- **Data Parsing**: JSON parsing with Python
- **Visualization**: Plotly for network graph visualization
## What's next for LogSpear
Integrating local, proprietary models, so that the data never leaves the network.
## Getting Started
Start the Python venv in your shell and install the packages from the requirements.txt file with pip.
```source venv/bin/activate && pip install -r requirements.txt```
Run the application with chainlit:
```chainlit run app/LogSpear/app.py```
## Demo video

## Screenshots



## License
MIT License
See [LICENSE](LICENSE) file for details.