13 Commits
Author SHA1 Message Date
rachit367 2e12e42bba feat(types): detect MD5/SHA1/SHA256 file hashes on import
TXT imports of file hashes were detected as Username, because File.detect
always returned False and Username.detect matches any 3-80 char
alphanumeric string. Hashes therefore couldn't be used as File entities
to pivot from (VirusTotal, MalwareBazaar, sandboxes), per #45.

- File.detect now recognizes 32/40/64-char hex strings (MD5/SHA1/SHA256),
  and File.from_string stores the value in the matching hash_* field
  (normalized to lowercase) while keeping it as the filename/label.
- Username.detect now explicitly rejects hash-shaped strings, so hash
  detection is correct regardless of type-registration order (File is
  already registered before Username, but this removes the implicit
  dependency).

Tests cover detection of each hash type (case/whitespace), rejection of
non-hashes, from_string field population, the Username regression, and
end-to-end detect_type() resolution to File.

Closes #45
2026-06-09 11:30:37 +05:30
dextmorgn 21376168ef feat(types): refactor to use nodeLabel 2026-01-21 17:17:53 +01:00
dextmorgn 1b0fb516af fix(types): fix label test for SocialAccount 2026-01-05 21:58:11 +01:00
dextmorgn 3ad9e72ca1 feat(types): socialAccount creating from string for username + tests 2025-12-10 15:20:11 +01:00
dextmorgn 4a74674c4d feat(types): username + individual validation 2025-12-05 15:46:21 +01:00
dextmorgn 1d7e7789e6 feat(types): additional website properties + status_code test 2025-12-03 12:35:33 +01:00
dextmorgn c3c328f299 feat(types): auto_discovery of types 2025-11-30 12:48:25 +01:00
dextmorgn 136de4240b feat(types): type registry + type detection 2025-11-28 20:08:37 +01:00
dextmorgn 2123ea5b8d feat: complete refactor 2025-11-27 17:16:41 +01:00
dextmorgn 3933946777 feat(types): add pydantic parser + tests 2025-11-21 12:55:53 +01:00
dextmorgn 456d95093e feat(types): label tests 2025-11-21 00:36:28 +01:00
dextmorgn ade74800aa feat: minifiy transform logic 2025-11-20 10:59:18 +01:00
dextmorgn 7b91bb2442 feat: type validation + simplified transform system 2025-11-19 22:13:38 +01:00