Documentation
Architecture & Data Pipeline
Data flows from official security sources into a single RDF knowledge graph stored in QLever. Each scheduled run executes the steps below in order.
- 1
Download
Downloaders fetch the latest data from each official source (NVD API, MITRE, CISA).
- 2
Convert to RDF
unified_pipeline.py preprocesses the raw files and maps them to RDF with RML mappings.
- 3
Validate
Every source is checked against its SHACL shapes before it is published.
- 4
Link entities
Records are linked across datasets: CVE ↔ CPE ↔ CWE ↔ CAPEC ↔ ATT&CK.
- 5
Index
QLever rebuilds its index so the new triples become queryable.
- 6
Serve
The dashboard and SPARQL endpoints read the indexed knowledge graph live.
Components & Features
What each part of the website does, grouped by page.
Navigation
Every pageNavbar
Links to the Dashboard, the Data menu (CVE, CWE, CAPEC, CPE, ICSA, ATT&CK, KEV, Unstructured Data), the QLever query editor, the SPARQL endpoint, Dump File and Documentation. On mobile it collapses into one menu button.
Theme toggle
Switches between light and dark mode. The choice is remembered in the browser.
Footer
Links to About, GitHub, API Reference and Privacy Policy, plus the version and build number.
Dashboard
/cskgGraph totals
Total triples, subjects, predicates and objects in the whole graph, counted live with SPARQL.
Knowledge Graph Structure
One card per source with its entities, triples, predicates and objects. Clicking a card opens that source's page.
Predefined Data Views
Shortcuts to each source's page, including KEV.
Live status bar
For each source, the date of the newest record stored in the graph ("Data as of"). The page re-reads the graph every 60 seconds.
Source activity cards
Entity total per source and a sparkline of records published per day over 14 days (CVE, ICSA, KEV). Sources without a publication date (CWE, CAPEC, ATT&CK, CPE) leave the chart empty.
Source pages
/cskg/cve, /cpe, /cwe, /capec, /icsa, /attack, /kevHeader statistics
Key figures for the source, such as total CVEs, average CVSS and critical count, or KEV entries and ransomware use. They follow the active filters.
Filter
Narrows every section of the page. CVE: year range, severity, search. CPE: part, year range, search. CWE: category, CAPEC mapping, sort, search. CAPEC: structure, severity, CWE mapping, search. ICSA: year range, sector, vendor, CVSS, search. ATT&CK: tactic, platform, search. KEV: vendor, sort, search. Filters are kept in the URL, so a filtered view can be shared.
Latest records
The newest or most relevant records of the source, each with a View entity button.
Detail view
Shows the full record and links to its resource page on sepses.org/resource/..., which returns the entity as RDF.
Charts
Source-specific charts, for example CVEs per year, severity distribution, top vendors and the ATT&CK tactic matrix.
Field guide
Explains each RDF property the source uses, for example dcterms:identifier or cve:hasCWE.
Record tables
/cskg/data/[entity]Record table
Paginated list of every record of a source (cve, cpe, cwe, capec, icsa, attack, kev) with search, sortable columns and a link to each record's resource page.
Dump files
/dumpsDownloads
Turtle (.ttl) and zipped dumps per source, with CVE split per year, for offline use or loading into another triple store.
Unstructured data
/cskg/unstructuredThreat-intelligence view
Overview, trends, entity breakdown and document table for entities extracted from unstructured reports. The figures currently come from a static sample file (lib/unstructuredData.ts), not from the graph.
Information pages
/, /about, /documentationLanding, About and Documentation
The landing page introduces SEPSES, About describes the project, datasets and technology stack, and this page explains how the platform works. Documentation is in the top menu and About in the footer.
Data Sources
| Source | Origin | Format | Update method |
|---|---|---|---|
CVE Common Vulnerabilities and Exposures | NIST NVD API 2.0 | JSON (paginated API) | Incremental |
CPE Common Platform Enumeration | NIST NVD API 2.0 | JSON (paginated API) | Incremental |
CWE Common Weakness Enumeration | MITRE (cwe.mitre.org) | XML | Full file |
CAPEC Common Attack Pattern Enumeration and Classification | MITRE (capec.mitre.org) | XML | Full file |
ATT&CK MITRE ATT&CK — Enterprise and ICS | MITRE attack-stix-data (GitHub) | STIX 2.1 JSON | Full file |
ICSA ICS-CERT Security Advisories | CISA via ICS Advisory Project | CSV | Full file |
KEV Known Exploited Vulnerabilities | CISA KEV catalog | JSON | Full file |
Vocabulary
Each source is modelled with its own SEPSES vocabulary. Use these namespaces as prefixes when writing SPARQL queries. Click the link below to view the documentation.
KEV
CISA Known Exploited Vulnerabilities: kev:KEVEntry with date added, due date, required action and ransomware use, linked from each CVE through kev:hasEntry.
https://sepses.org/vocab/ref/kev/Update Schedule
How current the data is depends on when the pipeline last ran. The table below is read live from the knowledge graph each time this page loads, so it always shows the real state of every source.
| Source | Newest record in the graph | Published on newest day | Date meaning |
|---|---|---|---|
| CVE | No date in graph | — | published or modified by NVD |
| CPE | No date in graph | — | CPE dictionary snapshot |
| CWE | No date in graph | — | weakness modified by MITRE |
| CAPEC | No date in graph | — | attack pattern modified by MITRE |
| ICSA | No date in graph | — | advisory released or updated by CISA |
| MITRE ATT&CK | No date in graph | — | technique modified by MITRE |
| CISA KEV | No date in graph | — | added to the KEV catalog by CISA |
How updates are triggered
Fast-moving data: NVD publishes and modifies records continuously, so only the changes are pulled each run.
Catalogue-style data released periodically by MITRE and CISA. A weekly full sync keeps them current without wasting bandwidth.
GitHub Actions runs the pipeline on every merged backend change (or when started manually), uploads the generated files to the server and re-indexes QLever.
The dashboard's "Auto-Refresh" (every 60 seconds) only re-reads the figures from the knowledge graph; it does not trigger a crawl. If the dates above are older than the schedule suggests, the scheduled run has not completed since then.
Backfill & Incremental Updates
- 1
Initial full backfill
On the first run (no saved state), the complete CVE and CPE history is downloaded from the NVD API, 2,000 records per page, respecting NVD rate limits (0.6 s between requests with an API key, 6 s without).
- 2
Resumable checkpoints
The full backfill takes a long time, so progress is saved every 25 pages. If a run is interrupted, the next run resumes from the last checkpoint instead of starting over.
- 3
Incremental updates
After the backfill, each run only requests records modified since the last successful run (NVD lastModStartDate), with a 1-day overlap so no change is missed. Updated records replace their older versions.
- 4
Manual re-sync window
Operators can re-pull a fixed period, for example the last 7 days, with: python3 download_data.py --source cve cpe --window-days 7
- 5
Schema-driven re-backfill
When the data model changes (for example the CVE-to-CWE mapping upgrade), the pipeline automatically runs one full backfill so historical records are rebuilt with the new structure.
Monitoring & Data Quality
Failure alerts
If any download fails, an e-mail alert is sent immediately with the cause (invalid link, server down, timeout or corrupt file).
No overlapping runs
A lock file prevents two pipeline runs from executing at the same time.
Growth tracking
New and updated CVE/CPE records are logged per day and can be audited with: python3 download_data.py --check-growth all
SHACL validation
Each source is validated against its SHACL shapes so malformed records are caught before indexing.
Accessing the Data
CSKG Dashboard
Overview of the whole graph and per-source statistics.
Query Editor (QLever)
Write and run SPARQL queries with autocompletion and example queries.
SPARQL Endpoint
The latest SEPSES SPARQL endpoint for programmatic access.
Resource Pages
Every entity has its own URI, e.g. sepses.org/resource/cwe/CWE-1191, returned as RDF.
Dump Files
Download the whole graph per source as Turtle files, with CVE split per year.
Wiki (GitHub)
The same documentation as Markdown pages in the repository, for developers.