rules

package
v4.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 AWS added in v4.3.0

func AWS() *config.Rule

func Atlassian

func Atlassian() *config.Rule

func AuthenticatedURL

func AuthenticatedURL() *config.Rule

func Clojars

func Clojars() *config.Rule

func GenericCredential

func GenericCredential() *config.Rule

func GitHubApp

func GitHubApp() *config.Rule

func GitlabPatRoutable added in v4.4.0

func GitlabPatRoutable() *config.Rule

func GitlabRunnerAuthenticationTokenRoutable added in v4.4.0

func GitlabRunnerAuthenticationTokenRoutable() *config.Rule

func HardcodedPassword

func HardcodedPassword() *config.Rule

func OnePasswordSecretKey added in v4.4.0

func OnePasswordSecretKey() *config.Rule

OnePasswordSecretKey Reference: - https://1passwordstatic.com/files/security/1password-white-paper.pdf

func PlaidAccessID

func PlaidAccessID() *config.Rule

func PrivateKey

func PrivateKey() *config.Rule

func SumoLogicAccessID

func SumoLogicAccessID() *config.Rule

func SumoLogicAccessToken

func SumoLogicAccessToken() *config.Rule

func VaultServiceToken

func VaultServiceToken() *config.Rule

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 FilterRules(selectedList, ignoreList, specialList []string) []*Rule

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL