• Stars
    star
    178
  • Rank 214,989 (Top 5 %)
  • Language
    PowerShell
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“ซ The Phishing Intelligence Engine - An Active Defense PowerShell Framework for Phishing Defense with Office 365

PIE

Phishing Intelligence Engine
LogRhythm Security Operations
v3.0  --  April, 2019

Copyright 2019 LogRhythm Inc. - See licensing details below

[About]

Phishing Intelligence Engine

The Phishing Intelligence Engine (PIE) is a framework that will assist with the detection and response to phishing attacks. An Active Defense framework built around Office 365, that continuously evaluates Message Trace logs for malicious contents, and dynamically responds as threats are identified or emails are reported.

๐Ÿšจ This framework is not officially supported by LogRhythm - use at your own risk! ๐Ÿšจ

Features:

- Analyze subjects, senders, and recipients using RegEx and Threat Feed correlation, to determine email risk.
- Automatically respond to attacks by quarantining mail, blocking senders, and checking for clicks.
- Sandbox analytics on all flagged email attachments and links.
- Dynamic Case Management integration and metrics tracking.
- Prevent sensitive data loss and verify corporate email security.

3.0 Updates:

- 365 Message Trace: Removed 5 minute runtime requirement.  Invoke-O365Trace.ps1 can be executed at any interval. 
- 365 Message Trace: Added support for .eml format e-mail submissions.
- 365 Message Trace: PIE execution log available under PIE/logs/pierun.txt.
- 365 Message Trace: Increased message processing threshold from 1,000 to 1,000,000 messages per execution.
- 365 Message Trace: Added handler for special characters in e-mail subject line.
- 365 Message Trace: Updated autoAuditMailboxes to support handling multiple matched entries.
- 365 Message Trace: Added support to filter out [email protected] from message counts.
- 365 Message Trace: Added URL whitelist to prevent scanning/analysis of frequenty legitimate sources.
- 365 Message Trace: New E-mail Address Template Config.
- 365 Message Trace: Parsing of Office 365 Safe Links is now automatic and does not require configuration.
- 365 Message Trace: Various Bug Fixes and execution improvements.
- LogRhythm Case: Added e-mail message text body to case notes.
- LogRhythm Case: Added e-mail links to case notes.
- LogRhythm Case: Added subjects to case notes.
- LogRhythm Dashboard: Added PIE Case Management dashboard template.
- Shodan Plugin: Now enumerates all services identified on host by Shodan.
- Shodan Plugin: Added handler for IP addresses that have not ben scanned by Shodan.
- Urlscan Plugin: New plugin.  Initiates URL scan for each URL and provides links to URLScan report and screenshot of the URL.
- Urlscan Plugin: Optional parameter to download screenshots locally to case folder.
- Urlscan/VirusTotal: If a link is direct to a file, the file's hash is submitted forward to VirusTotal and recorded.
- Urlscan/Wildfire: If a link is direct to a file, the file's hash is submitted forward to Wildfire and recorded.
- Sucuri Plugin: Updated to support Sucuri API v3.  Presents more in-depth information to the Case Report and LogRhythm Case.
- VirusTotal: Updated URL and File hash submission handlers.
- VirusTotal: Presents more in-depth information to the Case Report and LogRhythm Case.
- VirusTotal: Added support for Public API with submission rate limiting.  Commercial API use with no rate limit.
- SmartResponse: New SmartResponse 365-Security and Compliance Controller.  Supports the following actions: Compliance Search, Purge, Compliance Search & Purge.

[Additional Information]

Blog Post: https://logrhythm.com/blog/phishing-intelligence-engine-open-source-release/

BSides Vancouver 2018 Slides and Video: https://www.slideshare.net/heinzarelli/pie-bsides-vancouver-2018

BlueHat v17 Slides: https://www.slideshare.net/heinzarelli/phishing-intelligence-engine-bluehat-v17

Black Hat 2017 Slides: https://www.slideshare.net/heinzarelli/security-automation-and-orchestration

Security Weekly Webcast: https://www.youtube.com/watch?v=2oGMoGr4qBI

[Install and Usage]

Installation Walkthrough: https://www.youtube.com/watch?v=19bHJL0g154&feature=youtu.be

Configuration Guide (LogRhythm Community Access Required): https://community.logrhythm.com/t5/SIEM-articles/Phishing-Intelligence-Engine-PIE-Configuration-Guide/ta-p/39931

There are multiple aspects of this framework that all work together to detect and respond to Phishing attacks:

1) PIE Message Trace Logging

The core of the Phishing Intelligence Engine - provides ongoing logging via the API, third party tool integrations, and automated email response.

2) Office 365 Ninja

The response arm of PIE. Quarantine mail, block senders, change credentials, check Office 365 configurations, and more.

3) SPAM Tracker

List updater for ongoing tracking of spammer email addresses.

4) LogRhythm SIEM Dashboards

Analyst and Investigation Dashboards, which allow for searching and aggregation of Office 365 Data within the LogRhythm SIEM.

5) Alarms and Threat Lists

LogRhythm AIE alarm configurations and Threat List integrations.

6) LogRhythm SmartResponse

Plugins that can be integrated with the LogRhythm SIEM, allowing for automated response to alarms.

7) Report Phishing Message Button

Addon for Microsoft Outlook to allow for easy reporting of Phishing Attacks.

8) Architecture

High level overview of the PIE architecture and workflow:

PIE Architecture

[Thanks!]

This project would not be a success without the folks below and the various third-party API integration providers. Thank you!

  • Jtekt - PIE 3.0 Base, UrlScan Plugin, Shodan Plugin, O365 Safelinks, bug fixes, and LR 7.3 API integration
  • bruce deakyne - Cisco AMP Threat GRID Plugin
  • Gewch, LogRhythm Community - Special character handler in e-mail subject line
  • jake reynolds - OpenDNS Plugin
  • julian crowley - Message Tracking Log Parsing
  • matt willems - LogRhythm Case API Plugin
  • shaunessy o'brien - PIE Logo
  • sslwater, LogRhythm Community - PIE Message Trace enhancements
  • steve warburton - User Acceptance Testing
  • zack rowland - Outlook Button
  • SwiftOnSecurity - Phishing RegEx

[Lead Author]

Greg Foss - formerly of LogRhythm Labs

[License]

Copyright 2019 LogRhythm Inc.

PowerShell code is Licensed under the MIT License. See LICENSE file in the project root for full license information.

LogRhythm integrated code (SmartResponse and Dashboards) is licensed pursuant to the LogRhythm End User License Agreement located at https://logrhythm.com/about/logrhythm-terms-and-conditions/ (โ€œLicense Agreementโ€) and by downloading and using this content you agree to the terms and conditions of the License Agreement unless you have a separate signed end user license agreement with LogRhythm in which case that signed agreement shall govern your licensed use of this content. For purposes of the applicable end user license agreement, this content constitutes LogRhythm Software

More Repositories

1

Sigma

Convert Sigma rules to LogRhythm searches
19
star
2

VirusTotal

๐Ÿ› VirusTotal SIEM Integration and Automation
PowerShell
18
star
3

Carbon-Black-SmartResponse

๐Ÿ’ฅ Carbon Black SIEM Integration and Automation for LogRhythm
PowerShell
15
star
4

Endpoint-Lockdown

๐Ÿ”’ Isolate a host from the network using PowerShell
PowerShell
9
star
5

Extract-Remote-File-SmartResponse

PowerShell Script / SmartResponse to extract files from remote Windows hosts
PowerShell
9
star
6

Invoke-Okta

๐ŸŒ€ Okta + LogRhythm SIEM = Integration and Automation
PowerShell
8
star
7

System-Monitor-Agent-Maintenance

Utilize PowerShell remoting to perform automated SCSM agent maintenance
PowerShell
5
star
8

PIE-Button

๐Ÿ”˜ Phishing Intelligence Engine Microsoft Outlook Add-In
C#
5
star
9

Playbooks_CaseAPI

Playbook manipulation via API
PowerShell
4
star
10

SRP-DisableLocalWindowsAccount

Disables an account on a local Windows system
PowerShell
4
star
11

SRP-Fortinet

SmartResponse plugin to add IPs and FQDNs to an Address Group.
PowerShell
3
star
12

SRP-VirusTotal

"On-demand" VirusTotal file/URL scanning via the LogRhythm Web Console
C#
3
star
13

SRP-KillWindowsProcess

SmartResponse plugin to terminate a process on a Windows host.
PowerShell
2
star
14

ATTACK_STIX_analysis

A collection of scripts for analysis of the MITRE ATT&CK framework via STIX/TAXII
Jupyter Notebook
2
star
15

FireEye_breach_artifacts

extracted IOCs and MITRE technique analysis from the December 2020 FireEye breach
2
star
16

SRP-Nmap

Nmap SIEM Integration and Automation for LogRhythm
Lua
2
star
17

sunburst_iocs

List of IOCs from CISA STIX feed related to Alert AA20-352A
1
star
18

purple_team_cases

Create purple team master Case and per-MITRE-technique Cases for purple team exercise
Jupyter Notebook
1
star
19

log4Shell

LogRhythm resources for log4Shell detection.
1
star
20

Twilio-SMS-SmartResponse

โ˜Ž๏ธ SMS Messaging PowerShell Script Using Twilio
PowerShell
1
star
21

SRP-CiscoISE

SmartResponse plugin to quarantine a host via Cisco ISE
PowerShell
1
star
22

SRP-AddItemToList

Add an item to a text file to be consumed by the LogRhythm Job Manager
PowerShell
1
star
23

LR-attack-navigator-layer

MITRE ATT&CK Navigator layer displaying technique coverage in the MITRE ATT&CK KB Module
1
star