Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicPattern = []patterns.Pattern{ command_line_parameters.HardcodedPasswordParameterInCurl(), command_line_parameters.HardcodedPasswordParameterInMySqlCli(), command_line_parameters.HardcodedPasswordParameterInSshpass(), hardcoded_credentials.AuthorizationHttpHeader(), hardcoded_credentials.CredentialsInUri(), password_hashes.Argon2(), password_hashes.BCrypt(), password_hashes.MD5(), password_hashes.Sha256(), password_hashes.Sha512(), private_keys.PrivateKeyInXml(), private_keys.PrivateKeyGeneric(), private_keys.PuttyPrivateKeys(), public_keys.PublicKeyInXml(), public_keys.OpenSSHPublicKey(), public_keys.PkcsPublicKey(), tokens.AmazonMarketingServicesAuthToken(), tokens.AwsAccessKeyId(), tokens.AwsSecretKey(), tokens.FacebookAccessToken(), tokens.GitHubPersonalAccessToken(), tokens.GitHubOAuthAccessToken(), tokens.GitHubAppUserToServerToken(), tokens.GitHubServerToServerToken(), tokens.GitHubAppRefreshToken(), tokens.GitLabPersonalAccessToken(), tokens.GitLabJobToken(), tokens.GoogleCloudApiKey(), tokens.MailChimpAccessToken(), tokens.MailgunAccessToken(), tokens.PyPiAuthenticationToken(), tokens.SlackOAuthBotAccessToken(), tokens.SlackOAuthUserAccessToken(), tokens.SlackOAuthConfigurationToken(), tokens.SlackOAuthRefreshToken(), tokens.SlackWebhookToken(), tokens.StripeApiKey(), tokens.TelegramBotToken(), tokens.TwilioAccessToken(), }
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
func NewRegexDetector ¶
func NewRegexDetector() *Detector
func (*Detector) AddPattern ¶
func (*Detector) Check ¶
func (detector *Detector) Check(output interfaces.OutputFormatter, fileToCheck interfaces.LoadedFile) error
func (*Detector) Inject ¶
func (detector *Detector) Inject(llm interfaces.LlmConnector)
Click to show internal directories.
Click to hide internal directories.