CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pymisp

Python API for MISP threat intelligence platform enabling programmatic access to MISP instances.

Overall
score

96%

Overview
Eval results
Files

server-sync.mddocs/

Server & Synchronization

Multi-server synchronization and federation capabilities for sharing threat intelligence across MISP instances with comprehensive server management and data exchange controls.

Capabilities

Server Management

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."""

Data Synchronization

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."""

Usage Examples

Server Configuration

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)

Data Synchronization

# 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-pymisp

docs

attribute-management.md

core-api.md

data-models.md

event-management.md

index.md

object-generators.md

object-management.md

search-query.md

server-sync.md

tag-taxonomy.md

user-org-management.md

tile.json