Skip to content

This is a simple web-based Intrusion Detection System (IDS) built using Streamlit and Python. It scans log files for suspicious patterns using both Deterministic Finite Automata (DFA) and Regex-based scanning.

Notifications You must be signed in to change notification settings

anwitarajendra/log-scanner-using-dfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Pattern-based Intrusion Detection System using Finite Automata

This is a simple web-based Intrusion Detection System (IDS) built using Streamlit and Python. It scans log files for suspicious patterns using both Deterministic Finite Automata (DFA) and Regex-based scanning.


πŸš€ Features

  • βœ… DFA-based detection of repeated login failures (e.g., 3 consecutive login failed)
  • βœ… Regex detection of:
    • Unauthorized Access attempts
    • SQL Injection patterns (e.g., SELECT * FROM ...)
    • Suspicious IP activity (192.168.1.X)
  • βœ… Web interface built with Streamlit
  • βœ… Works with raw log file text input
  • βœ… Deployable on Streamlit Community Cloud, Replit, or locally

πŸ”§ Technologies Used

  • Python 3.x
  • Streamlit
  • Regular Expressions (re)
  • DFA logic implemented in Python
  • Pyngrok (optional, for localhost tunneling)

πŸ’» How to Run Locally

1. Clone the repo

git clone https://github.com/your-username/dfa-streamlit.git
cd dfa-streamlit

About

This is a simple web-based Intrusion Detection System (IDS) built using Streamlit and Python. It scans log files for suspicious patterns using both Deterministic Finite Automata (DFA) and Regex-based scanning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published