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

    Download

    Downloaders fetch the latest data from each official source (NVD API, MITRE, CISA).

  2. 2

    Convert to RDF

    unified_pipeline.py preprocesses the raw files and maps them to RDF with RML mappings.

  3. 3

    Validate

    Every source is checked against its SHACL shapes before it is published.

  4. 4

    Link entities

    Records are linked across datasets: CVE ↔ CPE ↔ CWE ↔ CAPEC ↔ ATT&CK.

  5. 5

    Index

    QLever rebuilds its index so the new triples become queryable.

  6. 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 page

Navbar

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

/cskg

Graph 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, /kev

Header 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

/dumps

Downloads

Turtle (.ttl) and zipped dumps per source, with CVE split per year, for offline use or loading into another triple store.

Unstructured data

/cskg/unstructured

Threat-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, /documentation

Landing, 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

SourceOriginFormatUpdate method
CVE
Common Vulnerabilities and Exposures
NIST NVD API 2.0JSON (paginated API)Incremental
CPE
Common Platform Enumeration
NIST NVD API 2.0JSON (paginated API)Incremental
CWE
Common Weakness Enumeration
MITRE (cwe.mitre.org)XMLFull file
CAPEC
Common Attack Pattern Enumeration and Classification
MITRE (capec.mitre.org)XMLFull file
ATT&CK
MITRE ATT&CK — Enterprise and ICS
MITRE attack-stix-data (GitHub)STIX 2.1 JSONFull file
ICSA
ICS-CERT Security Advisories
CISA via ICS Advisory ProjectCSVFull file
KEV
Known Exploited Vulnerabilities
CISA KEV catalogJSONFull 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.

CVE

Vulnerabilities and their references, products and weaknesses.

https://sepses.org/vocab/ref/cve/

CVSS

Severity scores and metrics attached to each CVE.

https://sepses.org/vocab/ref/cvss/

CPE

Affected platforms, products and vendors.

https://sepses.org/vocab/ref/cpe/

CWE

Weakness types and their relations to CVEs and CAPEC.

https://sepses.org/vocab/ref/cwe/

CAPEC

Attack patterns that exploit weaknesses.

https://sepses.org/vocab/ref/capec/

ATT&CK

Adversary tactics, techniques, groups and software.

https://sepses.org/vocab/ref/attack/

ICSA

Industrial control system advisories.

https://sepses.org/vocab/ref/icsa/

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.

SourceNewest record in the graphPublished on newest dayDate meaning
CVENo date in graph—published or modified by NVD
CPENo date in graph—CPE dictionary snapshot
CWENo date in graph—weakness modified by MITRE
CAPECNo date in graph—attack pattern modified by MITRE
ICSANo date in graph—advisory released or updated by CISA
MITRE ATT&CKNo date in graph—technique modified by MITRE
CISA KEVNo date in graph—added to the KEV catalog by CISA

How updates are triggered

CVE & CPE
Every 2 hours

Fast-moving data: NVD publishes and modifies records continuously, so only the changes are pulled each run.

CWE, CAPEC, ATT&CK, ICSA, KEV
Weekly — Sunday 02:00

Catalogue-style data released periodically by MITRE and CISA. A weekly full sync keeps them current without wasting bandwidth.

Pipeline code
On every push to main

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