Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not do some hashing? #64

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Why not do some hashing? #64

wants to merge 3 commits into from

Conversation

DarthHater
Copy link
Member

For IQ where we can identify files based on sha1, why not do that with stuff we find under paths in PATH? This can potentially identify items that were installed using curl/wget and gets a list of all the executable things in your PATH, which is where we find the majority of issues anyways with stuff installed on a baseos

This pull request makes the following changes:

  • Adds Hasher stuff (stolen from Sage, WOOF WOOF)
  • Pins to a newer version of go-sona-types for ability to do so (we'd want to merge that stuff before we merge this)
  • Calls this hash stuff from the IQ path
  • Moves the packages Interface towards PURL objects (was a requirement for what I'm using upstream)

cc @bhamail / @DarthHater

Copy link
Contributor

@bhamail bhamail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not?

packages/hasher.go Outdated Show resolved Hide resolved
packages/hasher.go Outdated Show resolved Hide resolved
Base automatically changed from master to main February 25, 2021 18:50
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.

2 participants