剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 红蓝攻防 InfraGuard - InfraGuard is a…
InfraGuard - InfraGuard is a Command & Control Redirection Prox 红蓝攻防 点击放大
作者:admin 发布:2026-10-06

InfraGuard - InfraGuard is a Command & Control Redirection Prox

项目说明!InfraGuard LogoRed team infrastructure tracker and C2 redirector -- a modern alternative to RedWarden.InfraGuard sits between the internet and yo…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
435浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-06
人工审核发布
评论区答疑

InfraGuard - InfraGuard is a Command & Control Redirection Prox

InfraGuard - InfraGuard is a Command & Control Redirection Prox

项目说明

!InfraGuard Logo

Red team infrastructure tracker and C2 redirector -- a modern alternative to RedWarden.

InfraGuard sits between the internet and your C2 teamserver, every inbound request against your malleable C2 profile and blocking anything that doesn't conform. Scanners, bots, and blue team probes get redirected to a decoy site while legitimate beacon traffic passes through to your teamserver.

!Mythic Callbacks Xenon
!InfraGuard Dashboard

Architecture

!Architecture Diagram

Features

Proxying & Listeners

  • Multi-domain proxying -- proxy multiple domains simultaneously, each with independent C2 profiles, upstreams, and rules

  • Multi-protocol listeners -- HTTP/HTTPS, HTTP/3 (QUIC), WebSocket, gRPC, DNS, MQTT, and TCP-tunnel listeners running simultaneously with shared IP intelligence and event tracking

  • Circuit breaker -- per-upstream failure protection with closed/open/half-open states; falls through to the domain's drop action when backends are unreachable

  • Protocol failover -- automatic failover and failback between listener protocols ranked by priority
  • C2 Profile Support

  • C2 profile -- parse and enforce Cobalt Strike, Mythic, Brute Ratel C4, Sliver, Havoc, Nighthawk, and PoshC2 profiles as redirector rules

  • Hot-swappable profiles -- swap a domain's active C2 profile at runtime from the dashboard without restarting the proxy

  • Profile generation wizard -- generate new C2 profiles from scratch for all 8 supported types via a guided form, or import and upload existing profiles with automatic type detection and

  • AI-assisted profile generation -- optional Ollama integration provides a chat panel in the dashboard for profile creation help and OPSEC advice
  • Filter Pipeline

  • Scoring-based filter pipeline -- 10 filters each contribute a 0.0--1.0 score; configurable threshold determines block/allow. Filters: JA3, IP, bot, header, DNS, geo, profile, replay, enumeration, sandbox.

  • JA3 TLS fingerprint filtering -- block Masscan, ZGrab2, Shodan, curl, Python requests, and Nmap at the TLS handshake layer before any HTTP data is exchanged; works header or custom asyncio protocol; optional allowlist mode enforces beacon JA3

  • Sandbox and headless browser detection -- score-accumulation across HTTP signals: HeadlessChrome UA, missing Accept-Language, Chrome without sec-ch-ua, Safe Links and msnbot scanner UAs, non-browser Accept ordering

  • Path enumeration detection -- per-IP unique URI tracking in a sliding window; blocks dirbuster/ffuf/gobuster before they map URI space

  • DNS subdomain enumeration detection -- tracks NXDOMAIN responses per client IP; auto-blocks source IPs on threshold breach

  • Anti-bot / anti-crawling -- 40+ known scanner/bot User-Agent patterns, header anomaly detection

  • Replay protection -- reject duplicate requests by content hash; hashes persisted to SQLite so protection survi

  • Drop actions -- redirect, TCP reset, proxy to decoy site, or tarpit (slow-drip response to waste scanner time)
  • Intelligence

  • IP intelligence -- built-in CIDR blocklists for 19 security ranges (Shodan, Censys, Rapid7, etc.), GeoIP filtering, reverse DNS keyword matching

  • Threat intel feeds -- auto-update blocklists from public sources (abuse.ch, Emerging Threats, Spamhaus DROP, Binary Defense) with configurable refresh interval and disk caching

  • Dynamic IP blocking -- block IPs outside whitelisted ranges; auto-whitelist IPs after N valid C2 requests

  • Whitelist enrichment -- whitelisted CIDRs are auto-enriched with ASN, organization, country, and continent data on startup databases

  • Burn detection -- Certificate Transparency log monitoring via crt.sh, domain reputation self-monitoring /OpenPhish/Google Safe Browsing, and cross-domain analyst detection when a single IP accesses multiple operator domains

  • Burn confidence scoring -- continuous 0--100 score from 6 weighted signals: JA3 di, spikes, new ASNs, CT log exposure, reputation hits, and failed auth attempts. Includes recommended actions: monitor, rotate, or immediate burn.

  • Canary token injection -- tracking pixels, honeypot links, and honeypot forms auto-injected into decoy pages to detect blue team in

  • Passive DNS monitoring -- polls CIRCL PDNS for external resolution of your domains; detects new records, NXDOMAIN spikes, and first-seen exposure
  • Payload Delivery

  • Content delivery routes -- ser, decoys, and static files at specific paths , Mythic file store, local filesystem, or HTTP proxy backends; optional conditional delivery to serve real content to targets and decoys to scanners

  • Mythic file staging -- mythic_file backend proxies Mythic's /direct/download/{uuid} at clean URLs; fixed UUID or proxy mode; access control provided by InfraGuard's filter stack

  • One-time payload tokens -- tokens issued automatically when a beacon is dynamically whitelisted; atomic single-use SQLite enforcement prevents URL replay by analysts or sandboxes; configurable TTL and max-use count

  • Per-route rate limiting -- sliding-window per-IP download rate limiter on content routes; exceeding the limit serves the configured scanner decoy or 429

  • Delivery guards -- en keying for content routes: require beacon IP, UA allowlist, required header , forbidden headers; failed checks ser drop action, not a raw 403

  • Phishing campaign tokens -- gate phishing pages behind per-campaign tokens embedded in email links; static token list or HMAC-signed self- tokens with configurable TTL
  • Resilience

  • Infrastructure rotation -- one-click blue-green Terraform rotation across 5 cloud pro with pre-flight checks, rollback, and age-encrypted state

  • Rotation scheduling -- automated rotation policies: fixed interval, burn-triggered, request-count threshold, and staggered rolling

  • Auto-rotation watchdog -- polls burn score and cert expiry on an interval; auto-rotates when the burn threshold trips or a cert has under N days left, or falls back to alert-only mode with a cost cap

  • Circuit breakers -- per-upstream failure tracking with HEALTHY / PROBING / TRIPPED states and configurable recovery timeout, surfaced live in the dashboard's Upstreams widget

  • Domain fronting -- CDN-based C2 routing via SNI/Host header split with CDN header stripping and SSRF protection

  • Dead man's switch -- operator heartbeat TTL that auto-stops C2 forwarding if the operator fails to check in

  • Purple-team mirror -- fire-and-forget duplicate of allowed events to a blue-team collector for engagement scoring

  • Shared state backend (Redis) -- optional cross-node replay cache, dynamic whitelist, beacon session bag, and drop rate-limit so horizontally scaled replicas see the same state

  • Edge proxies -- Cloudflare Worker and AWS Lambda for domain fronting through CDN infrastructure, edge country blocking, and host rewriting
  • Dashboard & Operator Tools

  • Web dashboard -- real-time SPA with login page, li feed, domain stats, top blocked IPs, WebSocket event streaming, and inline block/whitelist/unblock actions

  • Decoy page management -- list, preview, and edit decoy HTML pages directly from the dashboard; per-domain Canary O (pixel / hidden link / hidden form toggles) and a Canary Hits panel that surfaces every scanner or sandbox that pulled a decoy asset

  • Decoy tokens with dedicated callback endpoints -- injected tracking pixel, hidden link, and hidden form each fire a canary_hit event on /_ig/px|hp|hf?c=<token>; hits land in the tracking DB with filter_result=canary_hit and stream live to the Decoys page and any subscribed alerter plugin

  • Plugins tab -- lists loaded plugins with runtime enable / disable toggles (no restart) and a Plugin Marketplace to add any of the 29 built-in plugins with one click; every mutation persists to config.yaml and lands as a commit in the config-history repo

  • Command Post -- multi-instance aggregation dashboard that merges stats, requests, and li from multiple InfraGuard nodes into a single view, with a Fleet Map (MapLibre) that plots each proxy plus every blocked-source IP at its geolocated lat/lon and a fan-out plugin toggle for cross-instance operations

  • Terminal UI -- Textual-based TUI with login screen, live API polling, color-coded request log

  • Engagement reports -- self-contained HTML, JSON, or CS with per-domain breakdowns, filter effecti, and operator audit trail

  • Prometheus metrics -- /metrics endpoint exposing request counters, upstream latency histograms, circuit breaker state, feed freshness, acti, and the infraguard_acti gauge the Helm HPA scales on

  • OpenTelemetry -- opt-in OTLP traces + metrics exporter; obser compose profile stands up an OTEL collector plus Prometheus + auto-pro Grafana o dashboard

  • Kubernetes Helm chart -- proxy, dashboard, Redis StatefulSet, Ser, and HPA on the acti gauge; ships under deploy/helm/infraguard/
  • Integrations & Plugins

  • SIEM integration -- built-in plugins for Elasticsearch, Wazuh, and Syslog (CEF/JSON) with batched forwarding

  • Webhook alerts -- built-in plugins for Discord (embeds), Slack (Block Kit), generic webhook, PagerDuty (Events API v2, dedup keyed), and (two-way ops chat: /status, /sessions, /kill, /ack from a phone)

  • Detection plugins -- YARA rules o bodies, GreyNoise Community lookup, ML bot classifier (logistic regression on JA4 + UA + timing), response canary (canarytokens.org), p0f v3 fingerprinting, JA4/JA4H enrichment, GeoIP enrichment

  • Response manipulators -- HTML rewriter, payload watermark, signature stripper, JS challenge, cache mimicry, slow tarpit, shadow-block (return 200 to scanners so they ne)

  • Phishing.club integration -- HMAC-signed webhook receiver that ingests phishing events and auto-allowlists clicking target IPs

  • Plugin system -- e architecture with on_event hooks, per-plugin config, and event filtering; every plugin can be toggled or loaded from the dashboard's Plugins tab without a restart, and the change persists back to config.yaml with a config-history audit commit
  • Configuration & Deployment

  • Config encryption -- age (full-file) and SOPS (per-value) encryption with .env file support

  • Config -- CLI diff tool and 20+ security, operational, and TLS checks

  • API key management -- create, revoke, and rotate API keys with per-key rate limits, usage tracking, and quotas

  • Backend config generation -- generate Nginx, Caddy, or Apache configs with TLS, IP filtering, header checks, aliases, and custom headers

  • Rule ingestion -- import IP blocklists and User-Agent patterns from existing .htaccess and robots.txt files

  • Docker deployment -- Dockerfile + docker-compose with optional Let's Encrypt, GeoIP downloader, PwnDrop payload server, and Ollama AI assistant

  • GeoIP support -- all three GeoLite2 databases (City, ASN, Country) with Docker auto-download

  • Self-signed TLS fallback -- auto-generates certificates when configured paths don't exist

  • En support -- .env file auto-loaded; ${VAR} syntax works in all config and keys

  • Configurable health endpoint -- change the health check path to avoid fingerprinting

  • Structured logging -- JSON-formatted structured logs

  • Tracking & persistence -- SQLite with WAL mode for request logging, statistics, node registry, replay hashes, and payload tokens
  • Installation Guide

    Check out the Wiki Page for installation

    CLI Reference

    Generator options

    The generate command accepts additional flags for operator customization:

    | Flag | Description |
    |---|---|
    | --listen-port PORT | O listen port (default: from config) |
    | --ssl-cert PATH | O SSL certificate path |
    | --ssl-key PATH | O SSL key path |
    | --redirect-url URL | O redirect URL for blocked requests |
    | --default-action redirect\|404 | Action for non-matching requests |
    | --no-ip-filter | Omit IP allow/deny blocks |
    | --no-header-check | Omit header rules |
    | --alias DOMAIN:ALIAS | Add server name alias (repeatable) |
    | --header NAME:VALUE | Add custom response header (repeatable) |

    Command Post (Multi-Instance Dashboard)

    When running multiple InfraGuard instances across different VPSes or cloud pro, the Command Post aggregates stats, requests, and li from all nodes into a single dashboard.

    !InfraGuard Command Post

    Quick start

    Configuration

    Create config/command-post.yaml:

    What it shows

  • Merged stats -- total requests, allowed, blocked summed across all instances

  • Instance health bar -- green/red status for each connected node

  • Interlea log -- requests from all instances sorted by timestamp, each tagged with its instance name

  • Merged top blocked IPs -- aggregated across all instances

  • Per-domain stats -- domains from all instances with recalculated block rates

  • Li feed -- multiplexed WebSocket events from all nodes

  • Block/whitelist actions -- fan out to all instances or a specific one
  • API endpoints

    | Endpoint | Method | Description |
    |---|---|---|
    | /api/instances | GET | List all instances with health status |
    | /api/stats | GET | Merged stats from all instances |
    | /api/requests | GET | Interlea log from all instances |
    | /api/intel/whitelist | POST | Whitelist an IP on all instances |
    | /api/intel/blocklist | POST | Block an IP on all instances |
    | /api/intel/blocklist | DELETE | Unblock an IP on all instances |
    | /ws/events | WS | Multiplexed li from all instances |

    Docker Deployment

    Quick start

    This starts two services:

  • proxy -- the redirector on ports 443 and 80

  • dashboard -- the web UI on port 8080
  • With Let's Encrypt

    Requirements for Let's Encrypt:

  • Port 80 must be reachable from the internet

  • INFRAGUARD_DOMAIN must resolve to this host's public IP

  • INFRAGUARD_DOMAIN_EMAIL must be a valid email address
  • With GeoIP databases

    With PwnDrop (payload delivery)

    Then configure content routes in your config to proxy payload paths to PwnDrop:

    With Ollama (AI-assisted profile generation)

    The dashboard en INFRAGUARD_OLLAMA_URL is pre-configured in docker-compose.yml. When Ollama is running, the AI Assistant toggle appears in the dashboard's decoys and profiles page.

    Scaling

    Uncomment the proxy-node service in docker-compose.yml to enable.

    | | Purpose |
    |---|---|
    | ./config | Configuration files (mounted read-only) |
    | ./examples | C2 profiles (mounted read-only) |
    | ./rules | Ingested blocklists and rule source files (mounted read-only) |
    | ./data | SQLite database and generated profiles (persisted) |
    | certs | TLS certificates (shared between proxy and certbot) |
    | geoip | GeoLite2 databases (populated by geoip-update service) |
    | pwndrop-data | PwnDrop uploaded files and database |
    | ollama-data | Ollama model weights and configuration |

    > On Linux hosts, chown -R 1000:1000 config/ if you want dashboard-dri
    > (drop-action, profile swap, plugin toggle) to persist back to config.yaml. The
    > container's non-root uid needs write permission on the mount.

    Kubernetes Deployment

    Helm chart under deploy/helm/infraguard/ deploys the proxy, dashboard, Redis
    StatefulSet, and an HPA that scales the proxy on the infraguard_acti
    custom metric (needs prometheus-adapter in-cluster). See the wiki's
    Kubernetes Deployment
    page for the full guide.

    The chart's probes hit /health on the HTTPS listener with scheme: HTTPS, so
    the container needs a tls: block in the config (self-signed fallback is fine).

    Contributions

  • Mgeeky - Original Idea (RedWarden)

  • curi0usJack - .htaccess rules

  • Profiles

  • - threatexpress - jquery-c2.3.14.profile
    - InfinityCurve - Ha
  • C2 Frameworks

  • - Cobalt Strike - Malleable C2 profile support
    - Mythic - HTTPX profile support + file staging
    - Brute Ratel C4 - Ser profile support
    - Sliver - HTTP C2 profile support
    - Havoc - TOML profile support
    - Nighthawk - JSON listener config support
    - PoshC2 - YAML config support

    If you would like to contribute to the project, then please create a new branch with the name and specify the same name in the pull request. E.g. branch=v1.2.3 | [v1.2.3] Added blah item.

    License

    BSD 2-Clause License. See LICENSE for details.

    Copyright (c) 2026, Whispergate

    项目信息

    开发语言:Python

    Star 数:326

    技术要点

    该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕InfraGuard is a Command & Control Redirection Proxy and Manager which protects your Red Team Infrastructure against threat attribution展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题InfraGuard - InfraGuard is a Command & Control Redirection Prox
    所属分类红蓝攻防
    发布作者admin
    发布时间2026-10-06 00:43:42
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数435
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册