
如果你使用 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://travis-ci.org/MISP/MISP-Taxii-Server.svg?branch=master . If there are no errors, you're good!
If you want to test everything is working, run
bashtaxii-push --path http://localhost:9000/services/inbox -f tests/test.xml \ --dest my_collection --username admin --password admin
Obviously replace anything that differs in your system.
The client should say "Content Block Pushed Successfully" if all went well.
Now you have a TAXII server hooked up to MISP, you're able to send STIX files to the inbox and have them uploaded directly to MISP. So that's nice <3
There is also an experimental feature to push MISP events to the TAXII server when they're published - that's in scripts/push_published_to_taxii.py. It seems to work, but may occasionally re-upload duplicate events to MISP.
If you want, there is the ability to synchronise between a remote TAXII server and the local MISP server.
bash$ install-remote-server.sh [MISP-TAXII-SERVER] POLLING SERVER INSTALLATION FRIENDLY SERVER NAME: < Add a unique server name here, can be anything >
This will then install 2 files to ~/.misptaxii, one for a local server and one for the remote servers.
Edit these files as needed. Run install-remote-server.sh once for each remote server you want to add.
You'll probably want to put the sync script on a crontab,
First, run
bashecho `which python3` `which run-taxii-poll.py`
to get the path of your script, copy it. Then
bashcrontab -e
This will open your crontab. Paste in
cron0 */6 * * * <the output of that echo command you just ran>
This will run the polling script every 6 hours to keep things all synced up.
pythonWarning: (1265, "Data truncated for column 'original_message' at row 1") Warning: (1265, "Data truncated for column 'content' at row 1")
If you encounter the error above, this means you tried to push a STIX file bigger than 65,535 bytes. To fix it run the following commands.
bashmysql -u [database user] -p # Enter Database password mysql> use taxiipersist; mysql> alter table `inbox_messages` modify `original_message` LONGTEXT; mysql> alter table `content_blocks` modify `content` LONGTEXT; mysql> exit;
pythonWarning: (1071, 'Specified key was too long; max key length is 767 bytes')
If you encounter the error above, try the following after creating the databases as per https://github.com/MISP/MISP-Taxii-Server/issues/3#issuecomment-291875813:
SQLALTER DATABASE taxiipersist CHARACTER SET latin1 COLLATE latin1_general_ci; ALTER DATABASE taxiiauth CHARACTER SET latin1 COLLATE latin1_general_ci;
Take note of the user you did export OPENTAXII_CONFIG=/path/to/config.yaml with. If you sudo, this env will be lost. Use sudo -E to preserve env instead.
PyMISP complains about missing certificate verification. Under the misp-options in config.yaml do not simply set verifySSL = False. You can provide the CA bundle, a concatenation of all certificates in the chain, as verifySSL = /path/to/ca_bundle. Alternatively, you can export REQUESTS_CA_BUNDLE=/path/to/ca_bundle.
To verify that the opentaxii-sync-data worked, check the tables of database taxiipersist:
MariaDB [taxiipersist]> show tables; +-----------------------------+ | Tables_in_taxiipersist | +-----------------------------+ | collection_to_content_block | | content_blocks | | data_collections | | inbox_messages | | result_sets | | service_to_collection | | services | | subscriptions | +-----------------------------+
To verify whether the account-creation worked, check database taxiiauth:
MariaDB [taxiiauth]> select * from accounts; +----+----------+-----------------------------------------------------------------------------------------------+ | id | username | password_hash | +----+----------+-----------------------------------------------------------------------------------------------+ | 1 | ltaxii | pbkdf2:sha256:50000$99999999$1111111111111111111111111111111111111111111111111111111111111111 | +----+----------+-----------------------------------------------------------------------------------------------+
In the case that the server you want to poll has multiple POLL services,
run
bashtaxii-discovery \ --host <HOST TO POLL> --port <POLLING PORT> --discovery <DISCOVERY PATH, sometimes /taxii-discovery-service, may vary>
It'll show you the services available on the server. You'll probably see two POLL services, for different version of TAXII (message ***ding)
Find the one relevent to you, copy its Service Address,
and modify ~/.misptaxii/remote-servers.yml to resemble
yaml- name: "my server" taxii_version: "1.1" ... uri: <SERVICE ADDRESS>
now try polling again
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务