轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
heidgaf-inspector

stefan96/heidgaf-inspector

stefan96

Fork from https://github.com/stefanDeveloper/heiDGAF, HAMSTRING enhancement with Zeek

下载次数: 0状态:社区镜像维护者:stefan96仓库类型:镜像最近更新:3 个月前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,让镜像更快,让人生更轻。
点击查看

https://app.codecov.io/github/stefanDeveloper/heiDGAF https://github.com/stefanDeveloper/heiDGAF/graphs/contributors https://github.com/stefanDeveloper/heiDGAF/network/members https://github.com/stefanDeveloper/heiDGAF/stargazers https://github.com/stefanDeveloper/heiDGAF/issues https://github.com/stefanDeveloper/heiDGAF/blob/master/LICENSE.txt


https://github.com/stefanDeveloper/heiDGAF

heiDGAF - Domain Generation Algorithms Finder

Machine learning-based DNS classifier for detecting Domain Generation Algorithms (DGAs), tunneling, and data exfiltration by malicious actors.
https://heidgaf.readthedocs.io/en/latest/

https://github.com/stefanDeveloper/heiDGAF/issues/new?labels=bug&template=bug-report---.md · https://github.com/stefanDeveloper/heiDGAF/issues/new?labels=enhancement&template=feature-request---.md

[!CAUTION] This project has been moved to https://github.com/Hamstring-NDR/hamstring. Future development, issues, and releases will be maintained there.

Continuous Integration https://github.com/stefanDeveloper/heiDGAF/actions/workflows/build_test_linux.yml

About the Project

!https://raw.githubusercontent.com/stefanDeveloper/heiDGAF/main/docs/media/heidgaf_overview_detailed.drawio.png?raw=true

Getting Started

Run heiDGAF using Docker Compose:

sh
HOST_IP=127.0.0.1 docker compose -f docker/docker-compose.yml up

Or run the modules locally on your machine:

sh
python -m venv .venv
source .venv/bin/activate

sh install_requirements.sh

Alternatively, you can use pip install and enter all needed requirements individually with -r requirements.*.txt.

Now, you can start each stage, e.g. the inspector:

sh
python src/inspector/inspector.py

(back to top)

Usage

Configuration

To configure heiDGAF according to your needs, use the provided config.yaml.

The most relevant settings are related to your specific log line format, the model you want to use, and possibly infrastructure.

The section pipeline.log_collection.collector.logline_format has to be adjusted to reflect your specific input log line format. Using our adjustable and flexible log line configuration, you can rename, reorder and fully configure each field of a valid log line. Freely define timestamps, RegEx patterns, lists, and IP addresses. For example, your configuration might look as follows:

yml
- [ "timestamp", Timestamp, "%Y-%m-%dT%H:%M:%S.%fZ" ]
- [ "status_code", ListItem, [ "NOERROR", "NXDOMAIN" ], [ "NXDOMAIN" ] ]
- [ "client_ip", IpAddress ]
- [ "dns_server_ip", IpAddress ]
- [ "domain_name", RegEx, '^(?=.{1,253}$)((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,63}

The options `pipeline.data_inspection` and `pipeline.data_analysis` are relevant for configuring the model. The section
`environment` can be fine-tuned to prevent naming collisions for Kafka topics and adjust addressing in your environment.

For more in-depth information on your options, have a look at our
https://heidgaf.readthedocs.io/en/latest/usage.html, where we provide tables explaining all
values in detail.

### Monitoring
To monitor the system and observe its real-time behavior, multiple Grafana dashboards have been set up.

Have a look at the following pictures showing examples of how these dashboards might look at runtime.

<details>
  <summary><strong>Overview</strong> dashboard</summary>

  Contains the most relevant information on the system's runtime behavior, its efficiency and its effectivity.

  <p align="center">
    <a href="./assets/readme_assets/overview.png">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Latencies</strong> dashboard</summary>

  Presents any information on latencies, including comparisons between the modules and more detailed,
  stand-alone metrics.

  <p align="center">
    <a href="./assets/readme_assets/latencies.jpeg">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Log Volumes</strong> dashboard</summary>

  Presents any information on the fill levels of each module, i.e. the number of entries that are currently in the
  module for processing. Includes comparisons between the modules, more detailed, stand-alone metrics, as well as
  total numbers of logs entering the pipeline or being marked as fully processed.

  <p align="center">
    <a href="./assets/readme_assets/log_volumes.jpeg">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Alerts</strong> dashboard</summary>

  Presents details on the number of logs detected as malicious including IP addresses responsible for those alerts.

  <p align="center">
    <a href="./assets/readme_assets/alerts.png">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Dataset</strong> dashboard</summary>

  This dashboard is only active for the **_datatest_** mode. Users who want to test their own models can use this mode
  for inspecting confusion matrices on testing data.

  > This feature is in a very early development stage.

  <p align="center">
    <a href="./assets/readme_assets/datatests.png">
      
    </a>
  </p>

</details>

<p align="right">(back to top)</p>


## Models and Training

To train and test our and possibly your own models, we currently rely on the following datasets:

- CICBellDNS2021
- DGTA Benchmark
- DNS Tunneling Queries for Binary Classification
- UMUDGA - University of Murcia Domain Generation Algorithm Dataset
- DGArchive

We compute all features separately and only rely on the `domain` and `class` for binary classification.

### Inserting Data for Testing

For testing purposes, we provide multiple scripts in the `scripts` directory. Use `real_logs.dev.py` to send data from
the datasets into the pipeline. After downloading the dataset and storing it under `<project-root>/data`, run
```sh
python scripts/real_logs.dev.py

to start continuously inserting dataset traffic.

Training Your Own Models

[!IMPORTANT] This is only a brief wrap-up of a custom training process. We highly encourage you to have a look at the https://heidgaf.readthedocs.io/en/latest/training.html for a full description and explanation of the configuration parameters.

We feature two trained models:

  1. XGBoost (src/train/model.py#XGBoostModel) and
  2. RandomForest (src/train/model.py#RandomForestModel).

After installing the requirements, use src/train/train.py:

sh
> python -m venv .venv
> source .venv/bin/activate

> pip install -r requirements/requirements.train.txt

> python src/train/train.py
Usage: train.py [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  explain
  test
  train

Setting up the dataset directories (and adding the code for your model class if applicable) lets you start the training process by running the following commands:

Model Training

sh
> python src/train/train.py train  --dataset <dataset_type> --dataset_path <path/to/your/datasets> --model <model_name>

The results will be saved per default to ./results, if not configured otherwise.

Model Tests

sh
> python src/train/train.py test  --dataset <dataset_type> --dataset_path <path/to/your/datasets> --model <model_name> --model_path <path_to_model_version>

Model Explain

sh
> python src/train/train.py explain  --dataset <dataset_type> --dataset_path <path/to/your/datasets> --model <model_name> --model_path <path_to_model_version>

This will create a rules.txt file containing the innards of the model, explaining the rules it created.

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

Top contributors:

https://github.com/stefanDeveloper/heiDGAF/graphs/contributors

(back to top)

License

Distributed under the EUPL License. See LICENSE.txt for more information.

(back to top)

]

  • [ "record_type", ListItem, [ "A", "AAAA" ] ]
  • [ "response_ip", IpAddress ]
  • [ "size", RegEx, '^\d+b

The options CODE_TOKEN_13 and CODE_TOKEN_14 are relevant for configuring the model. The section CODE_TOKEN_15 can be fine-tuned to prevent naming collisions for Kafka topics and adjust addressing in your environment.

For more in-depth information on your options, have a look at our https://heidgaf.readthedocs.io/en/latest/usage.html, where we provide tables explaining all values in detail.

Monitoring

To monitor the system and observe its real-time behavior, multiple Grafana dashboards have been set up.

Have a look at the following pictures showing examples of how these dashboards might look at runtime.

Overview dashboard

Contains the most relevant information on the system's runtime behavior, its efficiency and its effectivity.

</a>
Latencies dashboard

Presents any information on latencies, including comparisons between the modules and more detailed, stand-alone metrics.

</a>
Log Volumes dashboard

Presents any information on the fill levels of each module, i.e. the number of entries that are currently in the module for processing. Includes comparisons between the modules, more detailed, stand-alone metrics, as well as total numbers of logs entering the pipeline or being marked as fully processed.

</a>
Alerts dashboard

Presents details on the number of logs detected as malicious including IP addresses responsible for those alerts.

</a>
Dataset dashboard

This dashboard is only active for the datatest mode. Users who want to test their own models can use this mode for inspecting confusion matrices on testing data.

This feature is in a very early development stage.

</a>

(back to top)

Models and Training

To train and test our and possibly your own models, we currently rely on the following datasets:

  • CICBellDNS2021
  • DGTA Benchmark
  • DNS Tunneling Queries for Binary Classification
  • UMUDGA - University of Murcia Domain Generation Algorithm Dataset
  • DGArchive

We compute all features separately and only rely on the CODE_TOKEN_16 and CODE_TOKEN_17 for binary classification.

Inserting Data for Testing

For testing purposes, we provide multiple scripts in the CODE_TOKEN_18 directory. Use CODE_TOKEN_19 to send data from the datasets into the pipeline. After downloading the dataset and storing it under CODE_TOKEN_20, run CODE_TOKEN_4 to start continuously inserting dataset traffic.

Training Your Own Models

[!IMPORTANT] This is only a brief wrap-up of a custom training process. We highly encourage you to have a look at the https://heidgaf.readthedocs.io/en/latest/training.html for a full description and explanation of the configuration parameters.

We feature two trained models:

  1. XGBoost (CODE_TOKEN_21) and
  2. RandomForest (CODE_TOKEN_22).

After installing the requirements, use CODE_TOKEN_23:

CODE_TOKEN_5

Setting up the dataset directories (and adding the code for your model class if applicable) lets you start the training process by running the following commands:

Model Training

CODE_TOKEN_6 The results will be saved per default to CODE_TOKEN_24, if not configured otherwise.

Model Tests

CODE_TOKEN_7

Model Explain

CODE_TOKEN_8 This will create a CODE_TOKEN_25 file containing the innards of the model, explaining the rules it created.

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

Top contributors:

https://github.com/stefanDeveloper/heiDGAF/graphs/contributors

(back to top)

License

Distributed under the EUPL License. See CODE_TOKEN_26 for more information.

(back to top)

]


The options __CODE_TOKEN_13__ and __CODE_TOKEN_14__ are relevant for configuring the model. The section
__CODE_TOKEN_15__ can be fine-tuned to prevent naming collisions for Kafka topics and adjust addressing in your environment.

For more in-depth information on your options, have a look at our
https://heidgaf.readthedocs.io/en/latest/usage.html, where we provide tables explaining all
values in detail.

### Monitoring
To monitor the system and observe its real-time behavior, multiple Grafana dashboards have been set up.

Have a look at the following pictures showing examples of how these dashboards might look at runtime.

<details>
  <summary><strong>Overview</strong> dashboard</summary>

  Contains the most relevant information on the system's runtime behavior, its efficiency and its effectivity.

  <p align="center">
    <a href="./assets/readme_assets/overview.png">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Latencies</strong> dashboard</summary>

  Presents any information on latencies, including comparisons between the modules and more detailed,
  stand-alone metrics.

  <p align="center">
    <a href="./assets/readme_assets/latencies.jpeg">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Log Volumes</strong> dashboard</summary>

  Presents any information on the fill levels of each module, i.e. the number of entries that are currently in the
  module for processing. Includes comparisons between the modules, more detailed, stand-alone metrics, as well as
  total numbers of logs entering the pipeline or being marked as fully processed.

  <p align="center">
    <a href="./assets/readme_assets/log_volumes.jpeg">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Alerts</strong> dashboard</summary>

  Presents details on the number of logs detected as malicious including IP addresses responsible for those alerts.

  <p align="center">
    <a href="./assets/readme_assets/alerts.png">
      
    </a>
  </p>

</details>

<details>
  <summary><strong>Dataset</strong> dashboard</summary>

  This dashboard is only active for the **_datatest_** mode. Users who want to test their own models can use this mode
  for inspecting confusion matrices on testing data.

  > This feature is in a very early development stage.

  <p align="center">
    <a href="./assets/readme_assets/datatests.png">
      
    </a>
  </p>

</details>

<p align="right">(back to top)</p>


## Models and Training

To train and test our and possibly your own models, we currently rely on the following datasets:

- CICBellDNS2021
- DGTA Benchmark
- DNS Tunneling Queries for Binary Classification
- UMUDGA - University of Murcia Domain Generation Algorithm Dataset
- DGArchive

We compute all features separately and only rely on the __CODE_TOKEN_16__ and __CODE_TOKEN_17__ for binary classification.

### Inserting Data for Testing

For testing purposes, we provide multiple scripts in the __CODE_TOKEN_18__ directory. Use __CODE_TOKEN_19__ to send data from
the datasets into the pipeline. After downloading the dataset and storing it under __CODE_TOKEN_20__, run
__CODE_TOKEN_4__
to start continuously inserting dataset traffic.

### Training Your Own Models

> [!IMPORTANT]
> This is only a brief wrap-up of a custom training process.
> We highly encourage you to have a look at the https://heidgaf.readthedocs.io/en/latest/training.html
> for a full description and explanation of the configuration parameters.

We feature two trained models:
1. XGBoost (__CODE_TOKEN_21__) and
2. RandomForest (__CODE_TOKEN_22__).

After installing the requirements, use __CODE_TOKEN_23__:

__CODE_TOKEN_5__

Setting up the dataset directories (and adding the code for your model class if applicable) lets you start
the training process by running the following commands:

#### Model Training

__CODE_TOKEN_6__
The results will be saved per default to __CODE_TOKEN_24__, if not configured otherwise.

#### Model Tests

__CODE_TOKEN_7__

#### Model Explain

__CODE_TOKEN_8__
This will create a __CODE_TOKEN_25__ file containing the innards of the model, explaining the rules it created.

<p align="right">(back to top)</p>


<!-- CONTRIBUTING -->
## Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any
contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also
simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

### Top contributors:

<a href="https://github.com/stefanDeveloper/heiDGAF/graphs/contributors">
  
</a>


<p align="right">(back to top)</p>

<!-- LICENSE -->

## License

Distributed under the EUPL License. See __CODE_TOKEN_26__ for more information.

<p align="right">(back to top)</p>


<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[contributors-shield]: https://img.shields.io/github/contributors/stefanDeveloper/heiDGAF.svg?style=for-the-badge

[contributors-url]: https://github.com/stefanDeveloper/heiDGAF/graphs/contributors

[forks-shield]: https://img.shields.io/github/forks/stefanDeveloper/heiDGAF.svg?style=for-the-badge

[forks-url]: https://github.com/stefanDeveloper/heiDGAF/network/members

[stars-shield]: https://img.shields.io/github/stars/stefanDeveloper/heiDGAF.svg?style=for-the-badge

[stars-url]: https://github.com/stefanDeveloper/heiDGAF/stargazers

[issues-shield]: https://img.shields.io/github/issues/stefanDeveloper/heiDGAF.svg?style=for-the-badge

[issues-url]: https://github.com/stefanDeveloper/heiDGAF/issues

[license-shield]: https://img.shields.io/github/license/stefanDeveloper/heiDGAF.svg?style=for-the-badge

[license-url]: https://github.com/stefanDeveloper/heiDGAF/blob/master/LICENSE.txt

[coverage-shield]: https://img.shields.io/codecov/c/github/stefanDeveloper/heiDGAF?style=for-the-badge

[coverage-url]: https://app.codecov.io/github/stefanDeveloper/heiDGAF

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 heidgaf-inspector 镜像标签

docker pull docker.xuanyuan.run/stefan96/heidgaf-inspector:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull stefan96/heidgaf-inspector:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
stefan96/heidgaf-inspector
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 heidgaf-inspector 镜像推荐

robocupssl/ssl-quality-inspector logo

robocupssl/ssl-quality-inspector

robocupssl
暂无描述
1万+ 次下载
12 天前更新
islasgeci/reproducibility_inspector logo

islasgeci/reproducibility_inspector

islasgeci
验证IslasGECI在Bitbucket上的各Git仓库能否生成analyses.json中定义的报告的Docker镜像。
1万+ 次下载
18 天前更新
islasgeci/reproducibility_inspector_setup logo

islasgeci/reproducibility_inspector_setup

islasgeci
暂无描述
1万+ 次下载
1 年前更新
siteinspector/siteinspector logo

siteinspector/siteinspector

siteinspector
用于检测网站中的拼写错误、语法错误、失效链接及其他错误的工具。
10万+ 次下载
3 年前更新
inspectorio/python logo

inspectorio/python

inspectorio
Inspectorio Python基础镜像,支持Python 2.7、3.6、3.7版本,预装Supervisor、Nginx、curl、jq、vim、New Relic、AWS CLI、Pipenv、Poetry、Gunicorn、uWSGI等工具和库,适用于Python应用的开发、测试与部署。
2 次收藏10万+ 次下载
5 年前更新
impartsecurity/inspector logo

impartsecurity/inspector

impartsecurity
暂无描述
1 次收藏10万+ 次下载
14 天前更新

查看更多 heidgaf-inspector 相关镜像