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

Fix: Trufflehog Accepting already parsed files #1834

Conversation

domwhewell-sage
Copy link
Contributor

As mentioned in #1812 trufflehog was sometimes accepting files from folders that had already been scanned, this was bypassing the filter added in #1720.

This PR partially reverses #1720 and changes the filter to not accept any FILESYSTEM events tagged with parsed-folder, this will prevent it accepting a file from a git repo then scanning the git repo folder (as its a separate event)

@domwhewell-sage domwhewell-sage changed the title Fix: Accepting already parsed files Fix: Trufflehog Accepting already parsed files Oct 9, 2024
@TheTechromancer
Copy link
Collaborator

Should we move the folder -> file logic to speculate/excavate? The functionality of converting a folder into files seems generic enough it should be builtin. What do you think?

@domwhewell-sage
Copy link
Contributor Author

domwhewell-sage commented Oct 10, 2024

@TheTechromancer yeh, speculate could probably do it having the folders re-raised per file allows their raw text to be raised so excavate can extract text from there

@TheTechromancer TheTechromancer merged commit 4196b20 into blacklanternsecurity:dev Oct 10, 2024
8 checks passed
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