Library / Web Scraping & Research
Web Scraping & Research
Suspicious_login_detection
When an API call/webhook arrives, it collects information from the web using Gmail, Postgres, Slack.
What it does
, the priority is set high in the 🔴 Priority: HIGH node. This indicates a potential targeted attack, requiring immediate analyst review. - Low to Medium Priority for Common Business Services: IPs identified as part of common business services (riot:true), depending on their trust level and operation status, are assigned low to medium priority by the 🟡 Priority: MEDIUM and 🟢 Priority: LOW nodes. This reflects a lower risk of malicious activity. - Classification-Based Prioritization: The workflow also considers the GreyNoise classification of the IP (malicious, benign, unknown) in the Check classification node: - Malicious IPs: Medium-high priority, suggesting opportunistic but potentially harmful activity, set in the 🔴 Priority: HIGH node. - Benign IPs: Low priority, as these are usually harmless scans by known actors, designated in the 🟢 Priority: LOW node. - Unknown IPs: Low-medium priority, indicating possibly innocuous but unverified activity, managed by the 🟡 Priority: MEDIUM node. - Additional Context for Outbound Threats: For outbound connections, the workflow prioritizes alerts based on whether the IP is a known service provider or a known device scanning the internet, as interpreted by the GreyNoise node. High priority is assigned to outbound connections to scanning devices in the 🔴 Priority: HIGH node, indicating potentially unwanted behavior. This approach, leveraging GreyNoise's advanced data analytics, showcases n8n's capability to deliver sophisticated cybersecurity solutions. By integrating this intelligent prioritization mechanism, the workflow ensures that your security team focuses on the most pressing threats first, enhancing overall security posture. ### Authentication - No Free Tier Available To set your API key for GreyNoise, open the GreyNoise node, and add a new authentication credential. Choose Generic Credential Type then Header Auth. Lastly, under Credential for Header Auth set the name to key and value to your api key.
The steps
- Extract relevant data
- New /login event
- Unknown threat?
- Get last 10 logins from the same user
- Query IP API1
- New location?
- Parse User Agent
- Merge
- New Device/Browser?
- Complete login info
- Query user by ID
- New Location
- New Device/Browser
- User has email?
33 steps in total.
Similar automations
Security & ComplianceDetect Suspicious Logins and Alert via Slack and Gmail33 stepsSecurity & ComplianceDetect Suspicious Logins and Alert Slack and Gmail89 stepsWeb Scraping & ResearchScore and flag SEO zombie pages with GA4, GSC, Postgres, Claude, and Slack35 stepsRAG & Knowledge BasesCheck consent before pgvector indexing in Postgres with OpenAI and Slack21 steps