Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ArrowInvalid
Message:      Schema at index 1 was different: 
_id: struct<$oid: string>
analysis_id: string
category: string
created: struct<$date: string>
families: list<item: null>
score: int64
signatures: list<item: null>
tags: list<item: null>
target: struct<filename: string, size: int64, md5: string, sha1: string, sha256: string, media_type: string, magic: string, fileext: string>
timeout: int64
ttps: list<item: string>
updated: struct<$date: string>
status: string
tasks: extension<arrow.json>
vs
_id: struct<$oid: string>
analysis_id: string
type: string
value: string
analysis_score: int64
families: list<item: null>
first_seen: struct<$date: string>
source: string
task_id: string
updated: struct<$date: string>
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4675, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2885, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3095, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2600, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 625, in _iter_arrow
                  yield new_key, pa.Table.from_batches(chunks_buffer)
                                 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
                File "pyarrow/table.pxi", line 5012, in pyarrow.lib.Table.from_batches
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                  return check_status(status)
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: Schema at index 1 was different: 
              _id: struct<$oid: string>
              analysis_id: string
              category: string
              created: struct<$date: string>
              families: list<item: null>
              score: int64
              signatures: list<item: null>
              tags: list<item: null>
              target: struct<filename: string, size: int64, md5: string, sha1: string, sha256: string, media_type: string, magic: string, fileext: string>
              timeout: int64
              ttps: list<item: string>
              updated: struct<$date: string>
              status: string
              tasks: extension<arrow.json>
              vs
              _id: struct<$oid: string>
              analysis_id: string
              type: string
              value: string
              analysis_score: int64
              families: list<item: null>
              first_seen: struct<$date: string>
              source: string
              task_id: string
              updated: struct<$date: string>

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Threat Desk with chat bot and PC vulnerability scan - on MongoDB (all-in-one)

Gowni Pranay, 24BTRCL076, AIML-B - NoSQL Databases using MongoDB (23CSE528), faculty Sujeet S Jagtap.

One application for the whole project: the Lab 7 Threat Desk (Threat Intelligence) web application, extended by the later labs, with the LLM/SLM chat bot and the PC vulnerability scan built into it. MongoDB is the database, the vector store (384-d embeddings) and the conversation memory. The language model (Ollama, qwen2.5:1.5b) runs locally inside the container.

Run it (one command)

docker run --rm -p 7860:7860 gownipranay/threatchat-mongodb:final

Open http://localhost:7860 (no login needed). The image holds MongoDB with the data already loaded (about 206,000 indicators, 1,731 exploited CVEs, actors, ransomware posts, the Cuckoo3 sandbox results), the model and the whole application. It needs about 4 GB RAM; the first chat answer takes longer while the model loads.

Menu item What it does
Chat bot Questions about Anticipated, Active, Evolving, Resolved threats on Linux, Windows, macOS, Android, iOS, with sources; remembers the last 5 exchanges
Scan my PC A Python script (threatdesk_scanner.py, downloaded from that page) finds vulnerabilities on the PC (read-only); fixes only after you confirm them (button, or chat: show findings, fix 3, yes)
Threats / Exploited CVEs / Actors / Sandbox / Feeds / Labs the Lab 7 application; Sandbox shows the Cuckoo3 results
Labs 1-18 all lab code, JSON exports, run outputs and the reports

Look at the MongoDB data inside the running container:

docker exec -it <container> mongosh cti_platform --eval "db.vulnerabilities.countDocuments({})"
docker exec -it <container> mongosh cti_platform --eval "db.sandbox_analyses.countDocuments({})"
docker exec -it <container> mongosh threatchat --eval "db.chunks.countDocuments({})"

Files in this repository

File What it is
threatchat.archive.gz MongoDB data of the chat bot: collection threatchat.chunks (1000 threats with vectors). Restore: mongorestore --gzip --archive=threatchat.archive.gz
sandbox_analyses.json, sandbox_iocs.json MongoDB data: the Cuckoo3 sandbox results (4 analyses, 32 indicators) for the Sandbox page (Extended JSON)
threat-desk-source.zip source of the application: threat-desk/ (Lab 7 app + chat page + scan page + scanner script), app/ (chat bot service), scanner/, data/
Dockerfile, start4.sh, start3.sh, start2.sh, start.sh, prebuild.py, import_cuckoo.py, labs_site.py, requirements.txt the build files of the all-in-one image (the labs folder comes from the GitHub repository)
GOWNIPRANAY-24BTRCL076-Mini_Project_Report.pdf, GOWNIPRANAY-24BTRCL076-Lab_Experiments_Report.pdf the two reports

The full consolidated repository (labs 1-18, tests, security assessment, Docker Compose version) is in the private GitHub repository https://github.com/gownipranay-REDDY/threatchat

Note: Hugging Face Docker Spaces need a paid plan, so this repository holds the files and the data, and the application is run with Docker as shown above.

Downloads last month
101