Downloads
Download XARF resources including JSON schemas, example reports, documentation, and reference implementations.
JSON Schemas
Official JSON Schema files for validating XARF reports.
XARF v4.2.0 Schemas
Individual Schemas by Type
Connection (8 types)
- connection-ddos.json
- connection-infected-host.json
- connection-login-attack.json
- connection-port-scan.json
- connection-reconnaissance.json
- connection-scraping.json
- connection-sql-injection.json
- connection-vulnerability-scan.json
Content (9 types)
- content-phishing.json
- content-malware.json
- content-csam.json
- content-csem.json
- content-exposed-data.json
- content-brand_infringement.json
- content-fraud.json
- content-remote_compromise.json
- content-suspicious_registration.json
Copyright (6 types)
- copyright-copyright.json
- copyright-p2p.json
- copyright-cyberlocker.json
- copyright-ugc-platform.json
- copyright-link-site.json
- copyright-usenet.json
Infrastructure (2 types)
Messaging (2 types)
Reputation (2 types)
Vulnerability (3 types)
Example Reports
Sample XARF reports demonstrating each event type.
Example Report Collections
Example Reports by Category
Connection
Content
Messaging
Vulnerability
Documentation
Complete XARF documentation in various formats.
Code Templates
Ready-to-use code snippets and templates.
Integration Templates
Python Template
Basic XARF report creation and validation
from xarf import create_report
def create_abuse_report(source_ip, abuse_type):
"""Create a basic XARF abuse report"""
# create_report auto-fills xarf_version, report_id, and timestamp
result = create_report(
category="connection",
type=abuse_type,
source_identifier=source_ip,
reporter={
"org": "Your Organization",
"contact": "[email protected]",
"domain": "example.com"
},
sender={
"org": "Your Organization",
"contact": "[email protected]",
"domain": "example.com"
},
)
if result.errors:
raise ValueError(result.errors)
return result.report.model_dump(by_alias=True, exclude_none=True)Flask API Template
REST API endpoint for receiving XARF reports
from flask import Flask, request, jsonify
from xarf import parse
app = Flask(__name__)
@app.route('/xarf/submit', methods=['POST'])
def submit_report():
result = parse(request.get_json())
if result.errors:
return jsonify({
'status': 'invalid',
'errors': [e.message for e in result.errors]
}), 400
# Process the validated report
process_abuse_report(result.report)
return jsonify({'status': 'accepted', 'report_id': result.report.report_id}), 202Evidence Handler Template
Evidence collection and hashing
import hashlib
import base64
def add_evidence_to_report(report, file_path, description):
"""Add evidence file to XARF report with SHA-256 hash"""
with open(file_path, 'rb') as f:
data = f.read()
# Calculate hash
sha256_hash = hashlib.sha256(data).hexdigest()
# Encode to base64
payload = base64.b64encode(data).decode('utf-8')
report.add_evidence(
content_type="application/octet-stream",
description=description,
payload=payload,
hash={
"algorithm": "sha256",
"value": sha256_hash
}
)Tools and Utilities
Standalone tools for working with XARF.
Previous Versions
Access older XARF specification versions.
| Version | Release Date | Status | Downloads |
|---|---|---|---|
| v4.2.0 | 2026 | Current | Schemas | Examples | Docs |
| v3.1.0 | Q2 2025 | Deprecated | Archived repo (abusix/xarf) |
| v3.0.0 | Q4 2024 | Deprecated | Archived repo (abusix/xarf) |
License
All XARF resources are released under the MIT License.
- Schemas: MIT License
- Examples: CC0 1.0 Universal
- Documentation: CC BY 4.0
Need Help?
- Implementation Guide - Step-by-step integration
- GitHub Discussions - Ask questions
- GitHub Issues - Report problems