OSINT Missile Intelligence Agent

July 30, 2025 ยท View on GitHub

๐Ÿšจ Real-time missile threat intelligence agent for Israeli red alert notifications

Overview

This AI agent provides automated, structured intelligence reports during missile attacks targeting Israel. It integrates with the Israeli Home Front Command API through Home Assistant, processes OSINT data from X (Twitter), and delivers actionable intelligence through multiple notification channels.

Purpose

When a red alert is issued in Israel, this agent:

  1. Receives automated triggers from Home Assistant's Homefront Command integration
  2. Analyzes real-time OSINT data from X (Twitter) including verified journalists, IDF accounts, and eyewitness reports
  3. Generates structured intelligence reports with verified information
  4. Delivers formatted notifications via Slack, email, or other channels

Workflow Architecture

flowchart LR
    A[๐Ÿšจ Red Alert] --> B[๐Ÿ  Home Assistant<br/>Homefront Command API]
    B --> C[๐Ÿ”— Webhook Trigger]
    C --> D[โšก Automation Platform<br/>N8N/Zapier/etc]
    D --> E[๐Ÿค– OSINT Agent]
    E --> F[๐Ÿฆ X API Tool<br/>OSINT Data Collection]
    F --> G[๐Ÿ“Š Structured Report<br/>JSON Schema]
    G --> H[๐Ÿ“ข Notifications]
    H --> I[๐Ÿ’ฌ Slack]
    H --> J[๐Ÿ“ง Email]
    H --> K[๐Ÿ“ฑ Other Channels]

Key Features

๐ŸŽฏ Intelligent Data Processing

  • Prioritizes verified sources (IDF, Home Front Command, major media)
  • Cross-references multiple OSINT channels
  • Filters speculation from confirmed intelligence
  • Never hallucinates - clearly marks uncertain information

๐Ÿ“‹ Structured Output Schema

Generates standardized reports containing:

  • Summary: Concise incident overview
  • HTML Report: Gmail-safe formatted notification
  • Militant Group: Suspected organization (if known)
  • Missile Count: Number of projectiles launched
  • Launch Details: Target areas and timing
  • Timestamps: Both UTC and Israel Standard Time
  • Affected Areas: Cities/regions under alert

๐Ÿ”„ Multi-Channel Delivery

  • Slack workspace notifications
  • Email alerts with HTML formatting
  • Webhook integrations for custom endpoints
  • API responses for downstream systems

Technical Implementation

Core Components

  1. System Prompt (system-prompt.md)

    • Defines agent behavior and output requirements
    • Specifies data prioritization rules
    • Ensures consistent report formatting
  2. JSON Schema (schema.json)

    • Validates structured output format
    • Ensures data consistency across reports
    • Enables reliable downstream processing
  3. X API Integration

    • Streams real-time OSINT data
    • Monitors verified journalist accounts
    • Tracks IDF and emergency service updates
    • Captures eyewitness reports

Integration Points

Home Assistant Setup

# Example Home Assistant automation
automation:
  - alias: "Red Alert Trigger"
    trigger:
      platform: state
      entity_id: binary_sensor.red_alert_jerusalem
      to: 'on'
    action:
      service: webhook.call
      data:
        url: "https://your-automation-platform.com/webhook/red-alert"
        method: POST
        data:
          alert_area: "{{ trigger.to_state.attributes.area }}"
          timestamp: "{{ now().isoformat() }}"

Automation Platform Configuration

  • N8N: Use HTTP Request node to call agent API
  • Zapier: Configure webhook trigger โ†’ AI agent โ†’ notification actions
  • Make.com: Set up scenario with webhook โ†’ agent โ†’ multi-channel delivery

Usage Examples

Sample Agent Response

{
  "summary": "Hamas reportedly launched 3 missiles toward Jerusalem area at 06:15 IST. Red alerts active in Jerusalem, Beit Shemesh, and surrounding communities. Iron Dome interceptions reported.",
  "gmail_html": "<html><body><h2>๐Ÿšจ Missile Alert Report</h2><p><b>Group:</b> Hamas</p><p><b>Details:</b> 3 missiles toward Jerusalem area</p><p><b>Areas:</b> Jerusalem, Beit Shemesh</p><p><b>Time:</b> 06:15 IST</p></body></html>",
  "militant_group": "Hamas",
  "missile_count": 3,
  "missile_launch_details": "3 missiles reported launched toward Jerusalem area",
  "launch_time_utc": "2025-07-30T03:15:00Z",
  "launch_time_ist": "2025-07-30T06:15:00+03:00",
  "affected_areas": ["Jerusalem", "Beit Shemesh", "Modiin"]
}

Slack Notification Format

๐Ÿšจ MISSILE ALERT - Jerusalem Area

๐Ÿ“ Affected Areas: Jerusalem, Beit Shemesh, Modiin
๐ŸŽฏ Source: Hamas (3 missiles)
โฐ Time: 06:15 IST (03:15 UTC)

๐Ÿ“Š Summary: Hamas reportedly launched 3 missiles toward Jerusalem area. Red alerts active in multiple communities. Iron Dome interceptions reported.

โš ๏ธ This is an automated intelligence report based on OSINT data.

Security Considerations

  • API Keys: Store X API credentials securely
  • Rate Limiting: Implement appropriate API call limits
  • Data Validation: Verify all inputs before processing
  • Error Handling: Graceful degradation when sources unavailable
  • Audit Trail: Log all agent activations and responses

Deployment

Prerequisites

  • X API access with appropriate permissions
  • Home Assistant with Homefront Command integration
  • Automation platform (N8N, Zapier, etc.)
  • Notification endpoints (Slack workspace, email server)

Configuration Steps

  1. Deploy agent to your preferred AI platform
  2. Configure Home Assistant webhook automation
  3. Set up automation platform workflow
  4. Test notification delivery channels
  5. Validate end-to-end alert processing

Monitoring & Maintenance

  • Health Checks: Regular API connectivity tests
  • Response Time: Monitor agent processing latency
  • Accuracy Tracking: Validate reports against official sources
  • False Positive Rate: Track and minimize incorrect alerts

License

This project is intended for defensive intelligence purposes only.


โš ๏ธ Important: This system provides automated analysis of public information during emergency situations. Always verify critical information through official channels and follow local emergency procedures.