Skip to content

KalidouLabghaly/Graylog-phishing-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

# Graylog Phishing Detection (Screenshot-Backed Portfolio Project)

This repository documents a **phishing simulation lab** and **Graylog detection workflow** using screenshots plus safe, educational example files.

> **Note:** The real lab used Postfix, Filebeat, Graylog, and PhishTool. This repo includes screenshots and illustrative files so reviewers can understand the approach without any sensitive data.

---

## πŸ“ Project Structure

- [`scripts/`](scripts/) – Example script to generate a sample `.eml` (no actual sending)
- [`configs/`](configs/) – Example Filebeat and Postfix configs (educational)
- [`detections/`](detections/) – Example Graylog pipeline rule
- [`dashboards/`](dashboards/) – Placeholder JSON describing dashboard intent
- [`samples/`](samples/) – Redacted sample email and log lines
- [`docs/screenshots/`](docs/screenshots/) – All screenshots from the lab

---

## 🧭 Walkthrough (Screenshots)

![Phishing Email Script](docs/screenshots/phishing_email_script.png)

Thunderbird Inbox (Phishing Messages) Simulated PayPal Login Page Captured Credentials (Lab) PhishTool Analysis Graylog Stream / Search View Graylog Search – sample 1 Graylog Search – sample 2 Graylog Search – sample 3 Graylog Pipeline Rule

---

## πŸ” Detection Logic (Summary)

- **URL shorteners:** match on `bit.ly`, `t.co`, `tinyurl`, `goo.gl` in message content
- **Phishing phrases:** "account locked", "verify account", "unusual activity"
- **Context fields:** add `phishing_indicator=true` and `indicator_reason` when matched

See: [`detections/graylog_pipeline_rule.txt`](detections/graylog_pipeline_rule.txt)

---

## βš™οΈ Example Ingest (Filebeat β†’ Graylog)

Filebeat tails mail logs and ships them to a GELF UDP input in Graylog. See:
- [`configs/filebeat_config.yml`](configs/filebeat_config.yml)

---

## πŸ§ͺ Sample Artifacts

- [`samples/phishing_email.eml`](samples/phishing_email.eml) – educational example email
- [`samples/sample_log.txt`](samples/sample_log.txt) – truncated mail log lines

---

## 🚨 Disclaimer

This is a **lab simulation** for educational and portfolio purposes only. Do **not** use these techniques outside controlled environments without explicit permission.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages