python - Azure 哨兵的 MISP 威胁指标 - Python 脚本问题
问题描述
我正在尝试通过使用 github 上 azure 的默认文档将威胁指标从我的 MISP 实例推送到 azure sentinel:https ://github.com/microsoftgraph/security-api-solutions/tree/master/Samples/MISP
我按照文档执行了这些步骤,但是 python3 script.py 给了我以下错误:
Traceback (most recent call last):
File "script.py", line 100, in <module>
main()
File "script.py", line 96, in main
request_manager.handle_indicator(request_body)
File "/var/azure/sentinel/security-api-solutions/Samples/MISP/RequestManager.py", line 197, in handle_indicator
self._post_to_graph()
File "/var/azure/sentinel/security-api-solutions/Samples/MISP/RequestManager.py", line 184, in _post_to_graph
self._log_post(response)
File "/var/azure/sentinel/security-api-solutions/Samples/MISP/RequestManager.py", line 98, in _log_post
if len(response['value']) > 0:
KeyError: 'value'
这是调用 RequestManager.py 中的内置方法,用于将指标发布到 Graph API
解决方案
不知道您的 Python 问题的答案,但您是否尝试过直接针对您的应用程序使用威胁情报平台连接器?它现在处于公开预览状态。
推荐阅读
- apache-spark - Databricks UI 中的 Spark 提交作业无法访问现有的 Hive DB
- azure-cosmosdb - Azure CosmosDB AutoPilot 按小时计算和估算成本?
- imap - mbsync - 从 gmail 服务器但不从本地计算机删除邮件
- python - 我如何能够将 SQLAlchemy python 连接到 server.py 文件
- android - SQLite Android Update 语句不更改新列值
- python - (Python) 字节数据到字符串的转换
- c - 最小堆插入函数
- amazon-dynamodb - Dynamodb 中的非事务性属性唯一性?
- laravel - 如何使用 Laravel Homestead 运行 post-vagrant-up 脚本
- node.js - 创建 API 路由以在 Google 工作表中追加一行时出现问题