Skip to content

Go Rules

SAST rules for Go that identify insecure patterns in application code.

Go Rule Catalog

IDTitleSeverityCategory
CODE-0795SQL InjectionCRITICALInjection
CODE-0796OS Command InjectionCRITICALInjection
CODE-0094Concurrent Append to SliceHIGHConcurrency
CODE-0190Insecure Transaction TracingHIGHBlockchain
CODE-0213DLL Hijacking VulnerabilityHIGHInsecureConfig
CODE-0214Missing RUnlock on RWMutexHIGHConcurrency
CODE-0273Concurrent writes to a mapHIGHConcurrency
CODE-0480Missing Mutex Unlock Before ReturnHIGHConcurrency
CODE-0761Incomplete Transaction Receipt Status InspectionHIGHBlockchain
CODE-0797Use of inherently dangerous function (unsafe package)HIGHInsecureConfig
CODE-0095WaitGroup Add Called Inside GoroutineMEDIUMConcurrency
CODE-0205Uncontrolled NULL pointer dereference in ServerCodec ReadRequestBodyMEDIUMInjection
CODE-0245Unmarshal Tag is DashMEDIUMInsecureConfig
CODE-0255Calling Wait() inside a loop blocks Done()MEDIUMConcurrency
CODE-0257Mutex Copied via Value ReceiverMEDIUMConcurrency
CODE-0270Integer underflows due to incorrect conversionMEDIUMInjection
CODE-0465Potential nil dereferenceMEDIUMGeneric
CODE-0508Unmarshal Tag OmitemptyMEDIUMInsecureConfig
CODE-0667Potential Goroutine Leak Due to Unbuffered ChannelMEDIUMConcurrency
CODE-0771Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0772Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0773Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0774Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0775Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0776Insecure SSH ConnectionMEDIUMAuth
CODE-0777Use of deprecated TLS versionMEDIUMCrypto
CODE-0778Inadequate encryption strengthMEDIUMCrypto
CODE-0779Use of cryptographically weak Pseudo-Random Number Generator (PRNG)MEDIUMCrypto
CODE-0780Incorrect permission assignment for critical resourceMEDIUMAccessControl
CODE-0781Incorrect permission assignment for critical resourceMEDIUMAccessControl
CODE-0782Improper handling of highly compressed dataMEDIUMInsecureConfig
CODE-0783Path TraversalMEDIUMAccessControl
CODE-0784Exposing entire filesystem through HTTP handlerMEDIUMAccessControl
CODE-0785Incorrect default permissionsMEDIUMAccessControl
CODE-0786Insecure Temporary File CreationMEDIUMInsecureConfig
CODE-0787Path Traversal in Archive ExtractionMEDIUMInjection
CODE-0789Server Side Request Forgery (SSRF)MEDIUMWeb
CODE-0790Cross Site Scripting (XSS) via template functionsMEDIUMWeb
CODE-0791Active debug code (pprof enabled)MEDIUMInsecureConfig
CODE-0792Integer overflow or wraparoundMEDIUMInjection
CODE-0793Incorrect access of indexable resource ('Range Error')MEDIUMGeneric
CODE-0812Invalid usage of modified variableMEDIUMGeneric
CODE-0742Iteration over a possibly empty mapLOWGeneric
CODE-0788Insecure HTTP Server ConfigurationLOWInsecureConfig
CODE-0794Binding to an unrestricted IP addressLOWInsecureConfig

Total Rules: 45

Click on any rule ID to view detailed information, examples, and remediation guidance.