Exclude Adobe plugins from vulnerability scanning - #50568
Conversation
|
@coderabbitai full review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 45414-software-inventory-vulnerabilities-add-adobe-plugins #50568 +/- ##
==============================================================================================
- Coverage 68.03% 68.03% -0.01%
==============================================================================================
Files 3930 3930
Lines 250268 250268
Branches 13270 13270
==============================================================================================
- Hits 170273 170272 -1
- Misses 64692 64695 +3
+ Partials 15303 15301 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
✅ Action performedFull review finished. |
WalkthroughAdobe CEP and UXP plugins are added to software inventory on macOS and Windows. Fleet displays them as “Plugin (Adobe)” with version and host count. Adobe plugins are marked “Not supported” for vulnerability detection across inventory, detail, and host software views. NVD CPE translation excludes the Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
frontend/pages/hosts/details/cards/Software/HostSoftwareTableConfig.tests.tsx (1)
74-82: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert the rendered vulnerability value.
The test name promises a vulnerability count, but the test only checks that
"Not supported"is absent. A blank or brokenVulnerabilitiesCellwould pass. Assert the exact count or vulnerability element rendered forCVE-2024-1234.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@frontend/pages/hosts/details/cards/Software/HostSoftwareTableConfig.tests.tsx` around lines 74 - 82, Update the test around the Cell component to assert the exact vulnerability count or rendered vulnerability element for CVE-2024-1234, rather than only verifying that “Not supported” is absent. Keep the scanned apps source setup unchanged and ensure the assertion matches the value rendered by VulnerabilitiesCell.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@frontend/interfaces/software.ts`:
- Around line 918-937: Keep adobe_plugins out of
NO_VULNERABILITY_DETECTION_SOURCES and add an NVD matching guard that rejects
host-application CPEs for Adobe plugin rows while preserving extension-level
matching and zero-vulnerability results. Update
frontend/interfaces/software.tests.ts:303-317 to assert Adobe plugins remain
supported; preserve normal vulnerability rendering and lookups in
frontend/pages/SoftwarePage/SoftwareInventory/SoftwareInventoryTable/SoftwareInventoryTableConfig.tsx:166-175,
frontend/pages/SoftwarePage/SoftwareInventory/SoftwareInventoryTable/SoftwareVersionsTableConfig.tsx:89-99,
frontend/pages/SoftwarePage/SoftwareVersionDetailsPage/SoftwareVersionDetailsPage.tsx:135-145,
frontend/pages/hosts/details/cards/Software/DeviceSoftwareTableConfig.tsx:87-97,
and
frontend/pages/hosts/details/cards/Software/HostSoftwareTableConfig.tsx:213-224.
Add coverage for the normal zero-vulnerability state in
frontend/pages/SoftwarePage/SoftwareInventory/SoftwareInventoryTable/SoftwareInventoryTableConfig.tests.tsx:50-76.
In `@server/vulnerabilities/nvd/cpe.go`:
- Around line 867-871: Keep Adobe plugins in the NVD/CPE flow by removing
adobe_plugins from ExcludedSources in server/vulnerabilities/nvd/cpe.go and add
source-aware candidate filtering that rejects host-application CPE matches while
preserving extension handling. Update TitleVersionsTableConfig.tsx to keep the
Vulnerabilities column live, revise TitleVersionsTable.tests.tsx and
HostSoftwareTableConfig.tests.tsx for live/no-match Adobe behavior, add real and
synthetic extension guardrail coverage in cpe_test.go, and document the
guardrail and current lack of meaningful extension-level matching in
changes/45414-adobe-plugins.
---
Nitpick comments:
In
`@frontend/pages/hosts/details/cards/Software/HostSoftwareTableConfig.tests.tsx`:
- Around line 74-82: Update the test around the Cell component to assert the
exact vulnerability count or rendered vulnerability element for CVE-2024-1234,
rather than only verifying that “Not supported” is absent. Keep the scanned apps
source setup unchanged and ensure the assertion matches the value rendered by
VulnerabilitiesCell.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: a4a54d51-9dc0-40a8-951e-728275925716
📒 Files selected for processing (17)
changes/45414-adobe-pluginsfrontend/interfaces/software.tests.tsfrontend/interfaces/software.tsfrontend/pages/SoftwarePage/SoftwareInventory/SoftwareInventoryTable/SoftwareInventoryTableConfig.tests.tsxfrontend/pages/SoftwarePage/SoftwareInventory/SoftwareInventoryTable/SoftwareInventoryTableConfig.tsxfrontend/pages/SoftwarePage/SoftwareInventory/SoftwareInventoryTable/SoftwareVersionsTableConfig.tsxfrontend/pages/SoftwarePage/SoftwareTitleDetailsPage/SoftwareTitleDetailsPage.tsxfrontend/pages/SoftwarePage/SoftwareTitleDetailsPage/TitleVersionsTable/TitleVersionsTable.tests.tsxfrontend/pages/SoftwarePage/SoftwareTitleDetailsPage/TitleVersionsTable/TitleVersionsTable.tsxfrontend/pages/SoftwarePage/SoftwareTitleDetailsPage/TitleVersionsTable/TitleVersionsTableConfig.tsxfrontend/pages/SoftwarePage/SoftwareVersionDetailsPage/SoftwareVersionDetailsPage.tsxfrontend/pages/SoftwarePage/components/tables/SoftwareVulnerabilitiesTable/SoftwareVulnerabilitiesTable.tsxfrontend/pages/hosts/details/cards/Software/DeviceSoftwareTableConfig.tsxfrontend/pages/hosts/details/cards/Software/HostSoftwareTableConfig.tests.tsxfrontend/pages/hosts/details/cards/Software/HostSoftwareTableConfig.tsxserver/vulnerabilities/nvd/cpe.goserver/vulnerabilities/nvd/cpe_test.go
Closes #49061 Adobe plugins are inventory-only: no vulnerability data source maps an Adobe CEP or UXP extension to a CVE. Adobe files CVEs against the host application (Photoshop, Acrobat, and so on) keyed to that app's version, which Fleet already scans via the apps/programs sources, so any match on an extension row would be a false positive pinned to the wrong version. Added adobe_plugins to the excluded sources on the NVD/CPE software iterator so they are excluded from vuln scanning.
a6ca429 to
54cd634
Compare
6c75c98
into
45414-software-inventory-vulnerabilities-add-adobe-plugins
Closes #49061
Adobe plugins are inventory-only: no vulnerability data source maps an Adobe CEP or UXP extension to a CVE. Adobe files CVEs against the host application (Photoshop, Acrobat, and so on) keyed to that app's version, which Fleet already scans via the apps/programs sources, so any match on an extension row would be a false positive pinned to the wrong version.
Summary by CodeRabbit