The integrated platform for monitoring & security
Observability
End-to-end, simplified visibility into your stack’s health & performance
インフラ
Applications
ログ
セキュリティ
Detect, prioritize, and respond to threats in real-time
Cloud Security
Application Security
Cloud SIEM
Digital Experience
Optimize front-end performance and enhance user experiences
Related Products
Software Delivery
Build, test, secure and ship quality code faster
Service Management
Integrated, streamlined workflows for faster time-to-resolution
AIOps
AI
Monitor and improve model performance. Pinpoint root causes and detect anomalies
AI Observability
Platform Capabilities
Built-in features & integrations that power the Datadog platform
Built-in Features
Workflows & Collaboration
Extensibility
Industry
テクノロジー
Use-case
Looking for Datadog logos?
You can find the logo assets on our press page.
ID: go-security/write-file-permissions
go-security/write-file-permissions
Language: Go
Severity: Warning
Category: Security
CWE: 284
Granting write access to a file is a security since other users can modify the content of the file. The issue is amplified for executable files that can be easily compromised (like scripts). Avoid giving write permissions to others to files.
package main import ( "fmt" "os" ) func main() { d1 := []byte("something somethingn") err := ioutil.WriteFile("myfile", d1, 0777) check(err) }
package main import ( "fmt" "os" ) func main() { d1 := []byte("something somethingn") err := ioutil.WriteFile("myfile", d1, 0770) check(err) }
Seamless integrations. Try Datadog Code Analysis
1 2
rulesets: - go-security # Rules to enforce Go security.
For more information, please read the Code Analysis documentation
Identify code vulnerabilities directly in yourVS Code editor
Identify code vulnerabilities directly inJetBrains products