Skip to content

Commit 972108a

Browse files
21 new detectors (#347)
1 parent 33ceb97 commit 972108a

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ release-protos-image:
5353

5454
snifftest:
5555
./hack/snifftest/snifftest.sh
56-

pkg/engine/defaults.go

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apify"
3434
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apimatic"
3535
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apiscience"
36+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apitemplate"
3637
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/appcues"
3738
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/appfollow"
3839
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/appsynergy"
@@ -122,6 +123,7 @@ import (
122123
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloze"
123124
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clustdoc"
124125
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/codacy"
126+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/codequiry"
125127
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/coinapi"
126128
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/coinbase"
127129
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/coinlayer"
@@ -138,6 +140,7 @@ import (
138140
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/countrylayer"
139141
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/courier"
140142
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/coveralls"
143+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/craftmypdf"
141144
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/crowdin"
142145
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cryptocompare"
143146
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/currencycloud"
@@ -187,6 +190,7 @@ import (
187190
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/everhour"
188191
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/exchangerateapi"
189192
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/exchangeratesapi"
193+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/extractorapi"
190194
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/facebookoauth"
191195
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/faceplusplus"
192196
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fakejson"
@@ -239,6 +243,7 @@ import (
239243
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gitlabv2"
240244
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gitter"
241245
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/glassnode"
246+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/glitterlyapi"
242247
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gocanvas"
243248
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gocardless"
244249
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/goodday"
@@ -262,6 +267,7 @@ import (
262267
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hubspotapikey"
263268
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/humanity"
264269
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hunter"
270+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hybiscus"
265271
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hypertrack"
266272
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/iconfinder"
267273
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/iexcloud"
@@ -289,6 +295,7 @@ import (
289295
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/keenio"
290296
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kickbox"
291297
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/klipfolio"
298+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/knapsackpro"
292299
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kontent"
293300
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kraken"
294301
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kucoin"
@@ -305,13 +312,15 @@ import (
305312
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/linkpreview"
306313
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/liveagent"
307314
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/livestorm"
315+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/loadmill"
308316
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/locationiq"
309317
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/loginradius"
310318
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/lokalisetoken"
311319
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/loyverse"
312320
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/luno"
313321
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/macaddress"
314322
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/madkudu"
323+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/magicbell"
315324
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/magnetic"
316325
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mailboxlayer"
317326
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mailchimp"
@@ -338,11 +347,14 @@ import (
338347
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/microsoftteamswebhook"
339348
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/midise"
340349
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mindmeister"
350+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/miro"
341351
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mite"
342352
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mixmax"
353+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mockaroo"
343354
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moderation"
344355
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/monday"
345356
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moonclerck"
357+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moonclerk"
346358
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moosend"
347359
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mrticktock"
348360
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/myfreshworks"
@@ -420,6 +432,7 @@ import (
420432
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/purestake"
421433
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pushbulletapikey"
422434
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pusherchannelkey"
435+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/qase"
423436
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/qualaroo"
424437
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/qubole"
425438
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/quickmetrics"
@@ -481,6 +494,7 @@ import (
481494
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shotstack"
482495
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shutterstock"
483496
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shutterstockoauth"
497+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signable"
484498
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signalwire"
485499
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signaturit"
486500
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signupgenius"
@@ -508,6 +522,8 @@ import (
508522
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/squarespace"
509523
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/squareup"
510524
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sslmate"
525+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/statuspage"
526+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/statuspal"
511527
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/stitchdata"
512528
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/stockdata"
513529
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/storecove"
@@ -536,6 +552,7 @@ import (
536552
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/teamworkspaces"
537553
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/technicalanalysisapi"
538554
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/telegrambottoken"
555+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/teletype"
539556
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/telnyx"
540557
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/terraformcloudpersonaltoken"
541558
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/text2data"
@@ -545,6 +562,7 @@ import (
545562
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/thousandeyes"
546563
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ticketmaster"
547564
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tiingo"
565+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/timecamp"
548566
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/timezoneapi"
549567
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tmetric"
550568
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/todoist"
@@ -556,6 +574,7 @@ import (
556574
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/trelloapikey"
557575
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/twelvedata"
558576
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/twilio"
577+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/twitter"
559578
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tyntec"
560579
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/typeform"
561580
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ubidots"
@@ -568,6 +587,7 @@ import (
568587
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/upwave"
569588
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/uri"
570589
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/urlscan"
590+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/userflow"
571591
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/userstack"
572592
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/vatlayer"
573593
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/vercel"
@@ -591,6 +611,7 @@ import (
591611
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/webscraper"
592612
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/webscraping"
593613
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/whoxy"
614+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/wistia"
594615
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/worksnaps"
595616
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/workstack"
596617
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors/worldcoinindex"
@@ -1247,5 +1268,27 @@ func DefaultDetectors() []detectors.Detector {
12471268
chatfule.Scanner{},
12481269
convier.Scanner{},
12491270
midise.Scanner{},
1271+
loadmill.Scanner{},
1272+
magicbell.Scanner{},
1273+
glitterlyapi.Scanner{},
1274+
apitemplate.Scanner{},
1275+
knapsackpro.Scanner{},
1276+
twitter.Scanner{},
1277+
timecamp.Scanner{},
1278+
signable.Scanner{},
1279+
teletype.Scanner{},
1280+
wistia.Scanner{},
1281+
hybiscus.Scanner{},
1282+
miro.Scanner{},
1283+
moonclerk.Scanner{},
1284+
codequiry.Scanner{},
1285+
qase.Scanner{},
1286+
extractorapi.Scanner{},
1287+
craftmypdf.Scanner{},
1288+
// generic.Scanner{},
1289+
userflow.Scanner{},
1290+
mockaroo.Scanner{},
1291+
statuspage.Scanner{},
1292+
statuspal.Scanner{},
12501293
}
12511294
}

scripts/test-last-changed-detector.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -uo pipefail
4+
5+
CHANGED=$(git diff --name-only --no-commit-id origin/main | grep pkg/detectors | grep -v test)
6+
while IFS= read -r FILE; do
7+
DIRECTORY=$(basename $FILE ".go")
8+
if [ -d "pkg/detectors/$DIRECTORY" ]
9+
then
10+
echo $DIRECTORY
11+
go test -v "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/$DIRECTORY"
12+
retVal=$?
13+
if [ $retVal -ne 0 ]; then
14+
exit 1
15+
fi
16+
fi
17+
done <<< "$CHANGED"

0 commit comments

Comments
 (0)