summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md17
-rw-r--r--example_data.json47
2 files changed, 64 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..510ad77
--- /dev/null
+++ b/README.md
@@ -0,0 +1,17 @@
+# soc_dashboard
+
+## Development setup
+
+Run `soc_collector` checked out to tag `dashboard` on port 8001.
+
+Populate `soc_collector` with data from `example_data.json`:
+
+```
+cat example_data.json | curl -s -u user3:pw3 --data-binary @- http://localhost:8000/sc/v0/add
+```
+
+Get dependencies and start the front end:
+
+```
+npm run start
+```
diff --git a/example_data.json b/example_data.json
new file mode 100644
index 0000000..2e45404
--- /dev/null
+++ b/example_data.json
@@ -0,0 +1,47 @@
+{
+ "document_version": 1,
+ "ip": "192.0.2.10",
+ "port": 443,
+ "whois_description": "SOMENET",
+ "asn": "AS65001",
+ "asn_country_code": "SE",
+ "ptr": "host10.test.soc.sunet.se",
+ "abuse_mail": "abuse@test.soc.sunet.se",
+ "domain": "sunet.se",
+ "timestamp_in_utc": "2021-06-21T14:06 UTC",
+ "user_presentation": {
+ "description": "A presentation of the observation as a whole (optional)",
+ "data": {
+ "subject_cn": {
+ "data": "unknown",
+ "display_name": "Subject Common Name",
+ "description": "A description of this key (optional)"
+ },
+ "subject_o": {
+ "data": "unknown",
+ "display_name": "Subject O (?)",
+ "description": "..."
+ },
+ "full_name": {
+ "data": "VMware ESXi 6.7.0 build-17700523",
+ "display_name": "Full Name"
+ },
+ "end_of_general_support": {
+ "data": false,
+ "display_name": "End of general support"
+ },
+ "cve_2021_21972": {
+ "data": "CVE-2021-21972 not applicable",
+ "display_name": "CVE 2021 21972"
+ },
+ "cve_2021_21974": {
+ "data": "CVE-2021-21974 patched",
+ "display_name": "CVE 2021 21974"
+ },
+ "cve_2021_21985": {
+ "data": "CVE-2021-21985 not applicable",
+ "display_name": "CVE 2021 21985"
+ }
+ }
+ }
+}