Skip to content

Inventory packages on EFS, Azure Files, and Filestore - #174

Merged
om986 merged 1 commit into
mainfrom
feat/shared-filesystem-packages
Dec 3, 2026
Merged

om986 merged 1 commit into
mainfrom
feat/shared-filesystem-packages

Conversation

@om986

@om986 om986 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • om scan workload fs aws, azure, and gcp mount EFS, Azure Files, and Filestore read-only from a worker that can already reach them, and add those CPE 2.3 names and package URLs to every workload that lists the filesystem.
  • The root-volume and boot-image scans record those mounts from fstab and systemd units. The filesystem scan does not create a mount target, a private endpoint, or a VPC authorization. Package identifiers are the only data copied off the filesystem.
  • A later API scan leaves filesystems and packages in place. A later root-volume scan replaces packages, so the filesystem scan runs again after it.

Fixes #106

Test plan

  • go test ./internal/workload/... ./internal/cmd/ ./internal/collectors/aws/ ./internal/collectors/azure/ ./internal/collectors/gcp/ ./internal/graph/
  • om scan workload aws, then om scan workload fs aws on an instance in the VPC of an EFS mount target, and confirm a package that exists only on the filesystem is stored
  • Confirm a filesystem with no mount target in the worker VPC is skipped and no mount target is created
  • Run om scan aws afterward and confirm the filesystem list and packages are still on the workload

Made with Cursor

A library installed on a shared filesystem never became a CVE finding, because the root-volume scan does not read that mount.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@om986
om986 merged commit 2c6cc02 into main Dec 3, 2026
7 checks passed
@om986
om986 deleted the feat/shared-filesystem-packages branch December 3, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared filesystems are not inventoried for packages

1 participant