Documentation
¶
Index ¶
- Constants
- func AWS() *config.Rule
- func Atlassian() *config.Rule
- func AuthenticatedURL() *config.Rule
- func Clojars() *config.Rule
- func GenericCredential() *config.Rule
- func GitHubApp() *config.Rule
- func GitlabPatRoutable() *config.Rule
- func GitlabRunnerAuthenticationTokenRoutable() *config.Rule
- func HardcodedPassword() *config.Rule
- func OnePasswordSecretKey() *config.Rule
- func PlaidAccessID() *config.Rule
- func PrivateKey() *config.Rule
- func SumoLogicAccessID() *config.Rule
- func SumoLogicAccessToken() *config.Rule
- func VaultServiceToken() *config.Rule
- type Rule
- type RuleCategory
- type ScoreParameters
Constants ¶
View Source
const GenericApiKeyID = "generic-api-key"
View Source
const TagAccessId = "access-id"
View Source
const TagAccessKey = "access-key"
View Source
const TagAccessToken = "access-token"
View Source
const TagApiKey = "api-key"
View Source
const TagApiToken = "api-token"
View Source
const TagClientId = "client-id"
View Source
const TagClientSecret = "client-secret"
View Source
const TagEncryptionKey = "encryption-key"
View Source
const TagPassword = "password"
View Source
const TagPrivateKey = "private-key"
View Source
const TagPublicKey = "public-key"
View Source
const TagPublicSecret = "public-secret"
View Source
const TagRefreshToken = "refresh-token"
View Source
const TagRegistrationToken = "registration-token"
View Source
const TagSecretKey = "secret-key"
View Source
const TagSensitiveUrl = "sensitive-url"
View Source
const TagTriggerToken = "trigger-token"
View Source
const TagUploadToken = "upload-token"
View Source
const TagWebhook = "webhook"
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedURL ¶
func GenericCredential ¶
func GitlabPatRoutable ¶ added in v4.4.0
func GitlabRunnerAuthenticationTokenRoutable ¶ added in v4.4.0
func HardcodedPassword ¶
func OnePasswordSecretKey ¶ added in v4.4.0
OnePasswordSecretKey Reference: - https://1passwordstatic.com/files/security/1password-white-paper.pdf
func PlaidAccessID ¶
func PrivateKey ¶
func SumoLogicAccessID ¶
func SumoLogicAccessToken ¶
func VaultServiceToken ¶
Using this local version because newer versions of gitleaks have an entropy value, which was set as too high It's here as prevention in case a newer version of gitleaks starts getting used and causes issues on this rule If gitleaks is updated on 2ms and the new version of this rule has entropy, set it to 3.0
Types ¶
type Rule ¶
type Rule struct {
Rule config.Rule
Tags []string
ScoreParameters ScoreParameters
}
func FilterRules ¶
func GetDefaultRules ¶
func GetDefaultRules() []*Rule
type RuleCategory ¶
type RuleCategory string
const ( CategoryAuthenticationAndAuthorization RuleCategory = "Authentication and Authorization" CategoryCryptocurrencyExchange RuleCategory = "Cryptocurrency Exchange" CategoryFinancialServices RuleCategory = "Financial Services" CategoryPaymentProcessing RuleCategory = "Payment Processing" CategorySecurity RuleCategory = "Security" CategoryAPIAccess RuleCategory = "API Access" CategoryCICD RuleCategory = "CI/CD" CategoryCloudPlatform RuleCategory = "Cloud Platform" CategoryDatabaseAsAService RuleCategory = "Database as a Service" CategoryDevelopmentPlatform RuleCategory = "Development Platform" CategoryEmailDeliveryService RuleCategory = "Email Delivery Service" CategoryInfrastructureAsCode RuleCategory = "Infrastructure as Code (IaC)" CategoryPackageManagement RuleCategory = "Package Management" CategorySourceCodeManagement RuleCategory = "Source Code Management" CategoryWebHostingAndDeployment RuleCategory = "Web Hosting and Deployment" CategoryBackgroundProcessingService RuleCategory = "Background Processing Service" CategoryCDN RuleCategory = "CDN (Content Delivery Network)" CategoryContentManagementSystem RuleCategory = "Content Management System (CMS)" CategoryCustomerSupport RuleCategory = "Customer Support" CategoryDataAnalytics RuleCategory = "Data Analytics" CategoryFileStorageAndSharing RuleCategory = "File Storage and Sharing" CategoryIoTPlatform RuleCategory = "IoT platform" CategoryMappingAndLocationServices RuleCategory = "Mapping and Location Services" CategoryNetworking RuleCategory = "Networking" CategoryPhotoSharing RuleCategory = "Photo Sharing" CategorySaaS RuleCategory = "SaaS" CategoryShipping RuleCategory = "Shipping" CategorySoftwareDevelopment RuleCategory = "Software Development" CategoryAIAndMachineLearning RuleCategory = "AI and Machine Learning" CategoryApplicationMonitoring RuleCategory = "Application Monitoring" CategoryECommercePlatform RuleCategory = "E-commerce Platform" CategoryMarketingAutomation RuleCategory = "Marketing Automation" CategoryNewsAndMedia RuleCategory = "News and Media" CategoryOnlineSurveyPlatform RuleCategory = "Online Survey Platform" CategoryProjectManagement RuleCategory = "Project Management" CategorySearchService RuleCategory = "Search Service" CategorySocialMedia RuleCategory = "Social Media" CategoryGeneralOrUnknown RuleCategory = "general or unknown" )
type ScoreParameters ¶
type ScoreParameters struct {
Category RuleCategory
RuleType uint8
}
Click to show internal directories.
Click to hide internal directories.