aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorAdam Janovsky2024-02-20 12:26:22 +0100
committerAdam Janovsky2024-02-20 12:26:22 +0100
commite4fceda880be87c29db6d8b294a80ebf11a482e8 (patch)
tree650c774ce798445bc672d8b87ebcad30617c26e4 /docs
parent7ee9d2f6df61f60bb436a11a049990da6dd38d20 (diff)
downloadsec-certs-e4fceda880be87c29db6d8b294a80ebf11a482e8.tar.gz
sec-certs-e4fceda880be87c29db6d8b294a80ebf11a482e8.tar.zst
sec-certs-e4fceda880be87c29db6d8b294a80ebf11a482e8.zip
document reference context inference
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile3
-rw-r--r--docs/user_guide.md11
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
index d4bb2cbb..a005bfc7 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -14,6 +14,9 @@ help:
.PHONY: help Makefile
+linkcheck:
+ @$(SPHINXBUILD) -b linkcheck . $(BUILDDIR)/linkcheck
+
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
diff --git a/docs/user_guide.md b/docs/user_guide.md
index 3eb8320e..a94b60c8 100644
--- a/docs/user_guide.md
+++ b/docs/user_guide.md
@@ -21,3 +21,14 @@ nvd_api_key: null # or the actual key value
```
If you aim to fetch the sources from NVD, we advise you to get an [NVD API key](https://nvd.nist.gov/developers/request-an-api-key) and set the `nvd_api_key` setting accordingly. The download from NVD will work even without API key, it will just be slow. No API key is needed when `preferred_source_nvd_datasets: "sec-certs"`
+
+
+## Infering inter-certificate reference context
+
+```{important}
+This is an experimental feature.
+```
+
+We provide a model that can predict the context of inter-certificate references based on the text embedded in the artifacts. The model output is not incorporated into the `CCCertificate` instances, but can be dumped into a `.csv` file from where it can be correlated with a DataFrame of certificate features.
+
+To train and deploy the model, it should be sufficient to change some paths and run the [prediction notebook](https://github.com/crocs-muni/sec-certs/blob/main/notebooks/cc/reference_annotations/prediction.ipynb). The output of this notebook is a `prediction.csv` file that can be loaded into the [references notebook](https://github.com/crocs-muni/sec-certs/blob/main/notebooks/cc/references.ipynb). This notebook documents the full analysis of references conducted on the Common Criteria certificates. Among others, the notebook generates some further `.csv` files that can subsequently be plotted via [plotting notebook](https://github.com/crocs-muni/sec-certs/blob/main/notebooks/cc/paper2_plots.ipynb).