-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a rule for Databricks Personal Access Token detection (#187)
* Adding Databricks PAT rule * Adding Databricks PAT to default ruleset * Retrain tests for new rule * Update CHANGELOG * Tune Databricks rule for higher signal --------- Co-authored-by: Brad Larsen <bradford.larsen@praetorian.com>
- Loading branch information
1 parent
b036422
commit ba0fee6
Showing
6 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
crates/noseyparker/data/default/builtin/rules/databricks.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
rules: | ||
|
||
- name: Databricks Personal Access Token | ||
id: np.databricks.1 | ||
pattern: | | ||
(?x) | ||
\b | ||
( | ||
dapi[a-f0-9]{32} | ||
(?: -[0-9]+ )? (?# optional -NUM suffix ) | ||
) | ||
\b | ||
references: | ||
- https://docs.databricks.com/en/dev-tools/auth/pat.html | ||
|
||
examples: | ||
- "DATABRICKS_TOKEN: 'dapicd295a7be286969133e18a58e4afe7bd-3'" | ||
- "dapif21ee53d2b3648c2a1ed38953312a203" | ||
|
||
negative_examples: | ||
- " dapiDataGetTopLongShortPositionRatio (params?: {}): Promise<implicitReturnType>;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters