ahrav
95e0090bc2
[chore] - correctly handle input shorter than 512 bytes ( #2077 )
...
* correctly handle input shorter than 512 bytes
* add tests
* reorder tests
* add another test case
* update test
* address comment
2023-10-31 16:42:42 -07:00
āh̳̕mͭͭͨͩ̐e̘ͬ́͋ͬ̊̓͂d
74a56de831
update braintreepayments detector to tri-state verification ( #1834 )
...
* update braintreepayments detector to tri-state verification
* Update pkg/detectors/braintreepayments/braintreepayments.go
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
* small nits
* small nits
---------
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2023-10-31 16:13:48 -04:00
dylanTruffle
8bac2b15ba
Detector-Competition-Feat: Adding Azure Batch keys ( #1956 )
...
* adding azure batch
* fmt
* fix lint
---------
Co-authored-by: Chair <chair@Chairs-MacBook-Pro.local >
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2023-10-31 10:49:04 -05:00
dylanTruffle
499cb64546
Detector-Competition-Fix: Fix redis to now support SSL, and look for azure redis connection strings ( #1957 )
...
* adding azure redis, and fixing the old detector to support ssl too
* fix?
* other way
---------
Co-authored-by: Chair <chair@Chairs-MacBook-Pro.local >
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2023-10-31 10:17:55 -05:00
Corben Leo
a4fd17c9d1
Detector-Competition-Fix: Fix AppFollow Detection & Verification ( #1933 )
...
* Detector-Competition-Fix: Fix AppFollow Detection & Verification
* fix(regex): update jwt regex for appfollow
2023-10-31 09:43:20 -05:00
ahrav
a9b056de0a
Centralize logic for checking archive extraction tools ( #2063 )
...
* Centralize logic for checking archive extraction tools
* simplify
2023-10-30 20:14:51 -07:00
Miccah
57203a56cd
[chore] Fix SourceManager flaky test ( #2059 )
...
* [chore] Fix SourceManager flaky test
Sorting by EndTime is not deterministic, however sorting by StartTime
should be. StartTime is set in a goroutine that's limited by
WithConcurrentUnits, so it should happen in order that the units are
received.
* Sort by unit ID
2023-10-30 19:16:55 -07:00
Cody Rose
e58a2913ea
Support multiple custom detectors ( #2064 )
...
#1711 accidentally removed the ability to support multiple custom detectors. This PR partially adds back this capability: Multiple custom detectors are now supported overall, but only one custom detector can be returned for a given keyword match.
2023-10-30 18:17:17 -04:00
Corben Leo
de4a14b3f9
Detector-Competition-Fix: Fix SalesBlink Detection & Verification ( #1950 )
2023-10-30 16:10:24 -05:00
Damanpreet Singh
244ba3a214
Detector-Competition-Fix: Update formio regex to match Jwt token ( #1935 )
2023-10-30 16:08:19 -05:00
Corben Leo
6a15cd8f30
Detector-Competition-Fix: Fix Bitcoin Average detector ( #1929 )
2023-10-30 16:02:30 -05:00
Corben Leo
509fc6c0eb
Detector-Competition-Fix: Fix currencycloud.com API key ( #1917 )
...
* Detector-Competition-Fix: Fix currencycloud.com API environment
* Detector-Competition-Fix: Fix currencycloud.com API environment
* fix(env): update environment
2023-10-30 15:56:30 -05:00
Cody Rose
45059864f8
Re-add detector version ( #2060 )
...
#2010 mistakenly removed detector version tracking from the Aho Corasick wrapper. This PR re-adds it.
2023-10-30 15:34:33 -04:00
Dustin Decker
05fae156e1
Add TravisCI source ( #1877 )
...
* Add TravisCI source
* update test to use sourcestest
* Remove jobPage loop
ListByBuild does not support pagination, so this was infinitely
repeating. https://developer.travis-ci.com/resource/jobs#find
* Continue chunking on error
* review updates
* update readme
---------
Co-authored-by: Miccah Castorina <m.castorina93@gmail.com >
2023-10-30 07:28:25 -07:00
Cody Rose
876a55821b
Remove verify flag from Aho-Corasick core ( #2010 )
...
The Aho-Corasick wrapper we have tracks information about whether verification should be enabled on an individual detector basis, but that functionality isn't related to the matching functionality of Aho-Corasick, and including it complicates the implementation. This PR removes it to simplify some things.
This PR removes some code that supported a potential future implementation of detector-specific verification settings, but that feature has not actually been implemented yet, so there's no loss of functionality. If we want that feature we can add it back on top of this in a more separated way.
2023-10-30 09:52:51 -04:00
Ankush Goel
2a66d4117a
adding 'token' keyword to regex for github_old ( #2037 )
2023-10-29 20:45:35 -07:00
Damanpreet Singh
7a9332152a
Detector-Competition-Feat: Added Reply.io API token detector ( #2019 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-29 17:57:36 -07:00
Damanpreet Singh
0068ec54f2
Detector-Competition-Feat: Added Stripo API token detector ( #2018 )
...
* Detector-Competition-Feat: Added Stripo API token detector
* adjust regex
---------
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-29 17:26:14 -07:00
Richard Gomez
0427985ebe
feat: deno deploy detector ( #2040 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-29 16:58:00 -07:00
Damanpreet Singh
3ffc0dfd22
Detector-Competition-Feat: Added Budibase API token detector ( #2016 )
2023-10-29 10:12:45 -07:00
Damanpreet Singh
52b3c99868
Detector-Competition-Feat: Added LemonSqueezy API token detector ( #2017 )
...
* Detector-Competition-Feat: Added LemonSqueezy API token detector
* fix regex
---------
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-28 15:03:14 -07:00
Richard Gomez
96b25150d0
Add Coinbase Wallet-as-a-Service detector ( #1895 )
...
* feat(coinbase): basic Wallet-as-a-Service detector
* update test
---------
Co-authored-by: Dustin Decker <dustin@trufflesec.com >
2023-10-27 10:32:36 -07:00
Damanpreet Singh
eb0c0fa99f
Detector-Competition-Feat: Add Metabase Session Secret Detector ( #1902 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-26 20:17:41 -07:00
Damanpreet Singh
bf6ece39ca
Detector-Competition-Feat: Added AppOptics API token detector ( #1989 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-26 20:06:30 -07:00
Damanpreet Singh
4d0a40d2f3
Detector-Competition-Feat: Added ZeroTier API token detector ( #1988 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-26 19:55:58 -07:00
Damanpreet Singh
f1a75395e8
Detector-Competition-Feat: Added BetterStack API token detector ( #1987 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-26 19:46:56 -07:00
Corben Leo
98d2922bee
Detector-Competition-Fix: Fix SurveyBot Verification ( #1948 )
2023-10-26 12:10:00 -05:00
Bill Rich
00a00ef651
Fix binary handling ( #1999 )
2023-10-26 10:07:02 -07:00
Mike Vanbuskirk
4636dc08f6
Add temp directory management ( #1878 )
...
* adds func to get scannerPIDs
* add cleanup and call to get pids
* move pid handling to git module
* remove PID logic from main
* refactor testing code to handle different exec name
* cleanup linting errors
* add better logging, fix dir if clause
* some PR fixups
* mod fixup
* add interfaces for helper funcs
* refactor cleanup into main, getPID into git
* lint and test fixups, remove fail on n<2 pids
* simplify pid sorting
* use filepath.Join
* use Args[0] for exec name, fix logger
* formatting fixup
* move functionality into cleantemp pkg
* go mod fixup
* remove redundant testing comment
* fix go.sum issues
* add 15m ticker loop for cleanup
* enclose ticker in function for goroutine defer
fix cleantemp interface
* make time more readable
* add check for non-local Trufflehog PIDs
* allow deletion even if no non-local pids found
* bundle intial cleanup into runCleanup func
* add explicit regex check for tempdir format
2023-10-26 12:28:56 -04:00
Corben Leo
8505d24d7d
Detector-Competition-Fix: Fix/Remove Flowdock detector ( #2004 )
...
* Detector-Competition-Fix: Fix/Remove Flowdock detector
---------
Co-authored-by: āh̳̕mͭͭͨͩ̐e̘ͬ́͋ͬ̊̓͂d <13666360+0x1@users.noreply.github.com >
Co-authored-by: ahmed <ahmed.zahran@trufflesec.com >
2023-10-26 09:35:13 -04:00
Corben Leo
b776f9c122
Detector-Competition-Fix: Fix/Remove Happi Detection & Verification ( #2003 )
...
* Detector-Competition-Fix: Fix/Remove Happi Detection & Verification
---------
Co-authored-by: āh̳̕mͭͭͨͩ̐e̘ͬ́͋ͬ̊̓͂d <13666360+0x1@users.noreply.github.com >
Co-authored-by: ahmed <ahmed.zahran@trufflesec.com >
2023-10-26 09:20:53 -04:00
Corben Leo
6914dacde3
Detector-Competition-Fix: Fix/Remove DataFire, API retired ( #1995 )
...
* Detector-Competition-Fix: Fix/Remove DataFire, API retired
* Detector-Competition-Fix: Depreciate Datafire Proto
* make protos for deprecating datafire
---------
Co-authored-by: āh̳̕mͭͭͨͩ̐e̘ͬ́͋ͬ̊̓͂d <13666360+0x1@users.noreply.github.com >
Co-authored-by: ahmed <ahmed.zahran@trufflesec.com >
2023-10-25 21:51:54 -04:00
Corben Leo
f7960265ea
Detector-Competition-Fix: Fix/Remove QuickMetrics (shutdown) ( #1997 )
...
* Detector-Competition-Fix: Fix/Remove QuickMetrics (shutdown)
* Detector-Competition-Fix: Fix/Remove QuickMetrics protos
* make protos for deprecating Blablabus (#2002 )
* make protos for deprecating quickmetrics
---------
Co-authored-by: āh̳̕mͭͭͨͩ̐e̘ͬ́͋ͬ̊̓͂d <13666360+0x1@users.noreply.github.com >
Co-authored-by: ahmed <ahmed.zahran@trufflesec.com >
2023-10-25 20:05:26 -04:00
āh̳̕mͭͭͨͩ̐e̘ͬ́͋ͬ̊̓͂d
7af4591356
make protos for deprecating Blablabus ( #2002 )
2023-10-25 19:25:00 -04:00
Corben Leo
51b7fcc5d6
Detector-Competition-Fix: Fix/Remove BlaBlaBus, API retired ( #1996 )
...
* Detector-Competition-Fix: Fix/Remove BlaBlaBus, API retired
* Detector-Competition-Fix: Depreciate Blabus proto
2023-10-25 18:45:40 -04:00
Corben Leo
cebd92d79e
Detector-Competition-Fix: Depreciate Glitterly ( #2000 )
2023-10-25 18:08:50 -04:00
Corben Leo
386c54ecbe
Detector-Competition-Fix: Fix MeaningCloud Verification ( #1946 )
2023-10-25 14:52:36 -05:00
Corben Leo
cef05b8d5a
Detector-Competition-Fix: Fix ScreenshotAPI Verification ( #1949 )
...
* Detector-Competition-Fix: Fix ScreenshotAPI
* Detector-Competition-Fix: Fix ScreenshotAPI
2023-10-25 14:50:20 -05:00
Ankush Goel
6c35dcffa5
Detector-Competition-Fix : fixed monday.com regex ( #1961 )
...
* fixed monday.com regex
* updating test secrets to use detectors5
---------
Co-authored-by: ahmed <ahmed.zahran@trufflesec.com >
2023-10-25 12:50:07 -04:00
Damanpreet Singh
b2811bcf78
Detector-Competition-Feat: Added Vagrant Cloud Access Token Detector ( #1941 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-25 11:03:45 -05:00
ahrav
4a9d93fe18
remove detector ( #1993 )
2023-10-25 07:44:58 -07:00
Corben Leo
c674f1fc34
Detector-Competition-Fix: Fix/Remove baseapi detector (no longer exists) ( #1992 )
2023-10-25 07:17:08 -07:00
Damanpreet Singh
2189dc9b0f
Detector-Competition-Feat: Added Portainer Detector ( #1936 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-25 06:32:57 -07:00
ahrav
5901a92acb
deprecate scan_interval field ( #1984 )
...
* deprecate scan_interval field
* rename
* add link to docs
2023-10-25 06:18:27 -07:00
Damanpreet Singh
b2702b7839
Detector-Competition-Feat: Added OpenVPN API Detector ( #1940 )
2023-10-25 04:57:07 -07:00
Ankush Goel
84cb33ce3d
loggly detector ( #1782 )
...
* loggly detector
* fixed the loggly_test.go
* fixed the test file to pass the test
---------
Co-authored-by: dsingdev-rocketx <bughunter00@protonmail.com >
2023-10-24 20:06:47 -07:00
Damanpreet Singh
f467cf923c
Detector-Competition-Feat: Added PortainerToken Detector ( #1938 )
...
Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com >
2023-10-24 13:48:40 -07:00
Damanpreet Singh
664c4884a6
fix #1751 : update facebookOauth Detector ( #1921 )
2023-10-24 11:07:52 -05:00
Damanpreet Singh
8184a62e24
fix: NewRelic Detector: fallback to EU Api for verification ( #1932 )
2023-10-24 11:02:39 -05:00
Corben Leo
7bc0b77374
Detector-Competition-Fix: Fix CloudSmith detection ( #1944 )
2023-10-24 11:01:27 -05:00