Skip to content

reversinglabs spectraassure update 2026-11-23 - #17057

Closed
rl-maartenb wants to merge 2 commits into
DefectDojo:devfrom
rl-maartenb:dev-reversinglabs-spectraassure
Closed

rl-maartenb wants to merge 2 commits into
DefectDojo:devfrom
rl-maartenb:dev-reversinglabs-spectraassure

Conversation

@rl-maartenb

@rl-maartenb rl-maartenb commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

This rewrites the ReversingLabs Spectra Assure (rl-json) parser.

Findings

  • Vulnerabilities: one finding per active CVE or GHSA on a component, or on a dependency found inside a component.
    • The same binary (same sha256) at several paths is reported once: nb_occurences is raised and an also at: <path> line is added per extra path.
    • Severity comes from the CVSS base score (v2, v3.x, v4.0). The score is stored in cvssv3_score or cvssv4_score.
    • Exploit information becomes tags and impact: Fix Available, Exploit Exists, Exploited by Malware, Patching Mandated. Patching Mandated also sets known_exploited.
  • New: policy violations: one finding per component that a failing threats or secrets policy violation points at.
    • vuln_id_from_tool is <category>-<rule_id>.
    • The description holds the threat name, or the secret details and evidence.
  • Titles: they carry the first 8 characters of the component's sha256. Multi-language installers ship several binaries with the same name and path; without the sha256 their findings would be identical rows.
  • Component version: the report's version, except that Generic without a purl is no version. Generic is Spectra Assure's version for a file that has no version of its own.
  • Locations: with V3_FEATURE_LOCATIONS on, each vulnerability finding whose package has a purl gets one dependency location.
  • Report date: a report without a valid timestamp is rejected. The timestamp is used as the finding date.

Deduplication

  • unique_id_from_tool = <vulnerability id | category-rule_id>/sha256:<component sha256>. A report without a sha256 uses path: instead.
  • settings.dist.py gets one new entry in each of two dicts:
    • HASHCODE_FIELDS_PER_SCANNER: ["unique_id_from_tool", "component_name", "component_version"]
    • DEDUPLICATION_ALGORITHM_PER_PARSER: DEDUPE_ALGO_HASH_CODE
  • The parser passes None instead of "" for an empty component name or version. Otherwise the hash computed at import would differ from a later recompute, after the blank fields are stored as NULL.
  • Breaking: the earlier parser deduplicated on a sha256 of the title. Findings imported with the earlier version will not match findings imported with this version.

Code layout

  • The package rlJsonInfo/ is replaced by rl_json_info/, which follows PEP 8 naming:
    • rl_json_info.py: report walking
    • cve_info_node.py: the finding data
    • rl_json_secrets.py: secret details
  • parser.py maps the result to Finding.

Docs

  • The parser page describes every field, the severity table, the version rule, locations and deduplication.
  • It also changes "Spectra Assure Assets" back to "Spectra Assure products". Spectra Assure products are ReversingLabs offerings, not DefectDojo assets.

Test data

  • The three existing sample reports are replaced by current exports of the same packages. They make up most of the diff.
  • Two reports are new:
    • azure-cli-2.84.0-x64: 104 CVE findings and 1 secrets violation
    • synthetic-shared-component: one component with a CVE and threats and secrets violations; a small hand-made report used for the dedupe cases

Test results

  • unittests/tools/test_reversinglabs_spectraassure_parser.py: 18 tests covering:
    • counts and fields per sample
    • titles, severities, tags and impact
    • policy violations
    • shared components, also at and occurrences
    • Generic without a purl
    • locations on and off
    • rejected reports
  • unittests/tools/test_reversinglabs_spectraassure_deduplication.py (new): 8 tests that run real imports through the API, covering:
    • the settings entries, and that the stored hash uses them rather than the legacy fallback
    • the same report imported twice or three times
    • another engagement (duplicate) and another product (not a duplicate)
    • changes outside the identity (still duplicates)
    • a new sha256, version or rule id (new findings)
    • reimport of the same report (nothing changes)
  • Run: ./run-unittest.sh with both test classes passes (26 tests) with DD_V3_FEATURE_LOCATIONS on and off. One test is skipped when it is off.
  • Lint: ruff passes with the repository's configuration.

Documentation

Updated: docs/content/supported_tools/parsers/file/reversinglabs_spectraassure.md.

Checklist

  • Rebased against the latest dev.
  • Submitted against the dev branch.
  • Meaningful PR name.
  • Ruff compliant.
  • Python 3.13 compliant.
  • Documentation updated in docs/.
  • Model changes: none, so no migrations.
  • Unit tests added.
  • Labels (moderators): enhancement, settings_changes.

🤖 Generated with Claude Code

@github-actions github-actions Bot added settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR docs unittests parser labels Nov 23, 2026
@dryrunsecurity

Copy link
Copy Markdown

DryRun Security

This pull request contains multiple critical findings where the non-allowed author 'rl-maartenb' modified numerous sensitive codepaths, including models, migrations, and API files. These unauthorized changes to restricted directories violate the configured codepath security policies.

🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/product/models.py (drs_281de82d)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/product/models.py' matches configured sensitive codepath pattern 'dojo/product/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/helper.py (drs_2d96cd60)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/helper.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0271_finding_perf_indexes.py (drs_30e24b61)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0271_finding_perf_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0299_finding_test_numsev_index.py (drs_3c958458)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0299_finding_test_numsev_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0278_global_search_fts_trigram_indexes.py (drs_3f5ab805)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0278_global_search_fts_trigram_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/risk_acceptance/helper.py (drs_41a22713)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/risk_acceptance/helper.py' matches configured sensitive codepath pattern 'dojo/risk_acceptance/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0307_event_history_lookup_indexes.py (drs_4c0a3913)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0307_event_history_lookup_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0312_alerts_bigint_id.py (drs_5316b88f)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0312_alerts_bigint_id.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0305_archive_batch_indexes.py (drs_6feb1a8d)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0305_archive_batch_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0274_finding_sla_expiration_index.py (drs_726ae33d)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0274_finding_sla_expiration_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0314_sla_configuration_day_bounds.py (drs_8b00cf79)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0314_sla_configuration_day_bounds.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0280_vulnerability_id_upper_index.py (drs_94b7ffde)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0280_vulnerability_id_upper_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/services.py (drs_977a513a)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/services.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0244_pghistory_indices.py (drs_a61961db)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0244_pghistory_indices.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/base_importer.py (drs_b91448cc)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/base_importer.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/models.py (drs_bc3c1dc8)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/models.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0273_product_upper_name_index.py (drs_c044c948)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0273_product_upper_name_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0300_finding_upper_title_index.py (drs_c094c5f4)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0300_finding_upper_title_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/tasks.py (drs_caac4075)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/tasks.py' matches configured sensitive codepath pattern 'dojo/tasks.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/models.py (drs_d8d14335)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/models.py' matches configured sensitive codepath pattern 'dojo/models.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0313_repair_invalid_concurrent_indexes.py (drs_d9c48c8a)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0313_repair_invalid_concurrent_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0311_product_dupe_delete_held_at.py (drs_da6713d0)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0311_product_dupe_delete_held_at.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0283_unique_finding_vulnerability_id.py (drs_dd398514)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0283_unique_finding_vulnerability_id.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0281_vulnerability_id_type.py (drs_e4fb8281)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0281_vulnerability_id_type.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0270_finding_visibility_perf_indexes.py (drs_e838708c)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0270_finding_visibility_perf_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/api_v2/serializers.py (drs_edd42301)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/api_v2/serializers.py' matches configured sensitive codepath pattern 'dojo/api_v2/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/default_reimporter.py (drs_f40f86e1)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/default_reimporter.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/deduplication.py (drs_f6ccd394)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/deduplication.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/api_v2/exception_handler.py (drs_fd351513)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/api_v2/exception_handler.py' matches configured sensitive codepath pattern 'dojo/api_v2/*.py' and was modified by 'rl-maartenb' (commit 02fb1bf) who is not in the allowed authors list.

We've notified @mtesauro.


Comment to provide feedback on these findings.

Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]

Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing

All finding details can be found in the DryRun Security Dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs parser settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR unittests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant