New Detector for Salesforce #4182
Labels
contributions welcomed
Signal for help from the community!
enhancement
new detector request
Issues that request addition of new detector(s)
Description
Salesforce OAuth2 credentials including the consumer and secret key pair are used to authenticate and authorize applications that need access to Salesforce data. These credentials are part of a connected app, which allows external services to securely interact with Salesforce APIs. The consumer key acts as a unique identifier for the app, while the consumer secret is used to verify the app’s authenticity when requesting an access token. Additionally, refresh tokens play a crucial role in maintaining access without requiring users to log in repeatedly. When an access token expires, a refresh token allows the application to request a new access token without user intervention. This ensures seamless and uninterrupted access to Salesforce resources while enhancing security by limiting the lifespan of access tokens. The current Salesforce detector is only scanning for access tokens that have a short TTL by default, but it is not scanning for either the long live consumer/secret key pair or the refresh token that are utilized to generate the access token in the first place. The two secret types should be able to be mostly identified by the regex patterns below.
Refresh Token: 5aep861[a-zA-Z0-9._=]+
Consumer Key: 3MVG9[a-zA-Z0-9+/=.]+
Secret Key: [A-Za-z0-9+/=.]{64} OR [0-9]{19}
Preferred Solution
Expand the current Salesforce detector to identify the three credential types that make up the Salesforce OAuth2 workflow. The provided patterns should make for a decent baseline on the expected match.
The text was updated successfully, but these errors were encountered: