Python API for MISP threat intelligence platform enabling programmatic access to MISP instances.
Overall
score
96%
Multi-server synchronization and federation capabilities for sharing threat intelligence across MISP instances with comprehensive server management and data exchange controls.
Manage remote MISP server connections and configurations.
def servers(self, **kwargs) -> list:
"""List configured remote servers."""
def get_server(self, server_id: Union[int, str]) -> dict:
"""Get specific server configuration."""
def add_server(self, server: Union['MISPServer', dict]) -> dict:
"""Add remote server configuration."""
def update_server(self, server: Union['MISPServer', dict], server_id: Union[int, str] = None) -> dict:
"""Update server configuration."""
def delete_server(self, server_id: Union[int, str]) -> dict:
"""Remove server configuration."""
def test_server(self, server_id: Union[int, str]) -> dict:
"""Test connection to remote server."""Control data exchange and synchronization between MISP instances.
def server_pull(self, server_id: Union[int, str], **kwargs) -> dict:
"""Pull data from remote server."""
def server_push(self, server_id: Union[int, str], **kwargs) -> dict:
"""Push data to remote server."""
def get_sync_config(self, server_id: Union[int, str]) -> dict:
"""Get synchronization configuration."""
def set_sync_config(self, server_id: Union[int, str], config: dict) -> dict:
"""Update synchronization settings."""from pymisp import PyMISP, MISPServer
misp = PyMISP('https://misp.example.com', 'your-api-key')
# Add remote server
server = MISPServer()
server.name = "Partner MISP"
server.url = "https://partner-misp.com"
server.authkey = "partner-api-key"
server.push = True
server.pull = True
response = misp.add_server(server)
# Test connection
test_result = misp.test_server(server_id)# Pull recent events from remote server
pull_result = misp.server_pull(
server_id,
timestamp='7d',
limit=100
)
# Push specific events to remote server
push_result = misp.server_push(
server_id,
eventid=[1, 2, 3]
)Install with Tessl CLI
npx tessl i tessl/pypi-pymispdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10