Home / Companies / Snyk / Blog / February 2024

February 2024 Summaries

16 posts from Snyk

Filter
Month: Year:
Post Summaries Back to Blog
Snyk has implemented a unique contribution culture for its user documentation, adopting a "docs-as-code" process that mirrors the code development process. This approach allows hundreds of active contributors to create, update, and improve content using developer-friendly platforms and tools. The documentation team writes the first draft in the GitBook writing environment, enabling contributors to quickly contribute without manual porting and reformatting. Snyk's contribution culture has led to over 250 active contributors and nearly 10 changes each day. The company is now focusing on improving its documentation's quality, matching user experiences and types, and providing more "opinionated" prescriptive content. This includes transforming the information architecture to match user journeys and personas, providing clear descriptive and prescriptive documentation, and creating a simplified targeted structure for different user types. Snyk aims to enhance its documentation with AI-powered quick answers, embedding content closer to the user experience, and publishing a full error message catalog.
Feb 29, 2024 978 words in the original blog post.
Defense in depth is a cybersecurity approach that involves building multiple layers of security measures to prevent attacks, rather than relying on a single layer of protection. This approach assumes that attackers will eventually breach any given defense and requires companies to prepare for such an eventuality by adding additional layers of protection. The defense in depth strategy consists of three main layers: physical, administrative, and technical controls, which work together to create a robust security posture. By adopting this approach, companies can make it more difficult for attackers to succeed and reduce the risk of data breaches. Defense in depth is particularly relevant in today's highly networked environments, where attacks are becoming increasingly sophisticated and scalable.
Feb 29, 2024 1,430 words in the original blog post.
5 Node.js security code snippets every backend developer should know` As a backend developer working with Node.js, it is essential to follow best security practices to protect your application against various threats. One of the most critical aspects of Node.js security is implementing input validation and sanitization to prevent common attacks such as SSRF or HTTP parameter pollution. Fastify schema-based approach can be used to validate request and response data in routes, ensuring that only properly formatted data enters the system. Additionally, using a secure password hashing algorithm like Bcrypt is crucial to protect user passwords from being easily deciphered in case of a data breach. Furthermore, Knex.js provides a powerful SQL query builder that safeguards against SQL injection attacks by using parameterized queries and escaping values entered into the SQL statements. Rate limiting with fastify-rate-limit can help prevent denial-of-service (DoS) attacks by controlling the number of requests a client can make to your application within a specific timeframe. By following these security best practices and leveraging robust tools like Snyk, backend developers can significantly enhance the security and integrity of their Node.js applications.
Feb 28, 2024 3,106 words in the original blog post.
REI embarked on a digital transformation and cloud migration journey to move its development environments to AWS, but soon realized that application security was not keeping up with this transition. To address this, REI established an AppSec program under the leadership of Dan Ngo, Lead Security Engineer at Cybersecurity Engineering and Risk Management. The team sought to build a strong security culture across development units by adopting the right security tooling and cultural shifts. They chose Snyk as their security tooling partner, which helped them integrate with REI's existing tooling and AWS cloud environment. Through continuous growth, embracing feedback, and identifying and assigning ownership to fixes, Dan's team fostered a collaborative relationship with development teams, leading to successful application security initiatives and a robust process for vulnerability management.
Feb 27, 2024 1,154 words in the original blog post.
Generative AI coding assistants like GitHub Copilot amplify existing security issues in codebases by replicating vulnerabilities and bad practices, even if the original code is already secure. The tool's behavior can exacerbate security problems, reinforcing bad habits, overlooking security concerns, and introducing outdated or flawed patterns. To mitigate this issue, organizations should conduct manual reviews of AI-generated code, implement SAST guardrails, adhere to secure coding guidelines, provide training and awareness to development teams, prioritize and triage issues, and consider mandating security guardrails for the use of generative AI code assistants. By combining these techniques with traditional AppSec methods, developers can strike a balance between innovation and security, making their applications more resilient to potential threats.
Feb 22, 2024 1,578 words in the original blog post.
To build a strong DevSecOps culture, it's essential to make developers part of the decision-making process, ensuring they're not just adopting new processes or tools but also buying into them. This collaboration is critical for success, and it's crucial to communicate the benefits of these changes to developers. Additionally, simplifying the onboarding process and learning from past experiences can help ensure that all voices are heard and that new ideas and feedback are incorporated. By formalizing a collaboration process, teams can mine collective knowledge and experience to inform tooling and processes decisions. Ultimately, cooperation between security and developer teams is at the core of any successful DevSecOps culture.
Feb 21, 2024 1,209 words in the original blog post.
SQL injection attacks are a significant threat to Node.js applications, occurring when user input is mishandled and used within SQL queries without proper validation, sanitization, or query construction. This can lead to unauthorized access, data leakage, and other security issues. To prevent SQL injection vulnerabilities in Node.js, developers can use query placeholders, prepared statements, validate and sanitize user input, and utilize the latest versions of ORM and SQL libraries. Additionally, using a Snyk IDE extension for Visual Studio Code can aid in identifying and resolving SQL injection vulnerabilities, providing real-time feedback during the coding process. By implementing these strategies, developers can ensure their Node.js applications are robust and secure against SQL injection attacks.
Feb 20, 2024 2,260 words in the original blog post.
Node.js applications are vulnerable to server-side request forgery (SSRF) attacks, which can expose sensitive data and cause significant damage. SSRF occurs when an attacker manipulates a server into making unintended requests to internal or external resources by input tampering or URL manipulation. To prevent SSRF vulnerabilities in Node.js applications, it is essential to sanitize user input, restrict access to trusted domains, use firewalls, enforce URL schemas, create allowlists of trusted domains, and utilize security tools like Snyk to detect vulnerabilities. By implementing these strategies and best practices, developers can significantly reduce the likelihood of SSRF vulnerabilities in their applications and protect their systems against potential attacks.
Feb 20, 2024 1,759 words in the original blog post.
To maximize benefits and mitigate risk, trust and security must be woven into every process, project, and product handled by software teams, especially with AI-assisted development. The risks of AI for software development include bad training data, hallucinations, and potential introduction of vulnerabilities, while the rewards include increased productivity and speed. To mitigate these risks, companies should create and maintain AI policies, protect intellectual property, and enable safe use of AI coding assistants to drive developer productivity. An integrated solution like Snyk can help verify code to mitigate AI risks, providing real-time scanning, vulnerability flags, and recommended fixes. By prioritizing security and trust in AI-assisted development, teams can balance people, processes, and technology to create safer software.
Feb 14, 2024 1,030 words in the original blog post.
With Love, Your Applications This Valentine's Day, the applications express their gratitude for the care and kindness shown by ASPM (application security posture management). They appreciate that ASPM takes a holistic perspective when assessing their risk levels, considering not only CVSS ratings but also their unique roles in the business. Additionally, they value ASPM's efforts to secure every part of them, including third-party components and infrastructure as code, and make it easy for developers to remediate vulnerabilities with automated workflows. Overall, the applications acknowledge that ASPM provides a comprehensive approach to securing them, recognizing the importance of each vulnerability and the need for timely fixes.
Feb 14, 2024 373 words in the original blog post.
Reporting AppSec risk up to the CISO requires clear and concise reports that provide a holistic view of the application security landscape, including all code-based assets used to build it. This is crucial for making informed decisions on risk and resource allocation. The key to effective reporting lies in understanding how risks are introduced, categorized into three buckets - baseline, preventable, and non-preventable issues - and measuring progress over time. A four-essential category framework should be considered when building reports for CISOs and security leaders, including exposure, management, prevention, and coverage. This approach allows teams to provide contextualized visibility and actionable next steps. The new Enterprise Analytics feature in Snyk provides cross-group insights, sharing of insights with stakeholders, and the ability to report on risk trends such as exposure, management, prevention, and coverage. By adopting this approach and using the right tools, security teams can effectively report risk up to their CISOs.
Feb 13, 2024 1,945 words in the original blog post.
The Snyk IaC security features provide automatic source locations for rule violations using Rego, a declarative programming language. The `snyk iac test` command now displays accurate file, line, and column information for each rule violation in CloudFormation files. This feature is part of the unified policy as code engine, which allows developers to define security policies in a human-readable format and easily enforce them across their infrastructure as code. The Snyk IaC security features also support custom rules written in Rego, making it possible for teams to extend the security capabilities of the platform. Additionally, the feature provides a way to automatically infer source locations of rules used in policies, which can help reduce false positives and improve the efficiency of policy enforcement.
Feb 12, 2024 2,614 words in the original blog post.
Creating Software Bill of Materials (SBOMs) is essential for open source security and compliance, providing transparency into a software product's composition. The Snyk CLI can create SBOMs for software projects, automating this process to enhance security and compliance in the CI/CD pipeline. By integrating the Snyk CLI into your build process, you can automatically generate comprehensive SBOMs each time your code is built, listing all dependencies, including transitive dependencies. The Snyk CLI supports multiple programming languages and package managers, allowing users to find, fix, and monitor known vulnerabilities in open source dependencies, as well as create and analyze SBOMs.
Feb 08, 2024 1,348 words in the original blog post.
Welcoming Danny Allan and Brian Rogan: Snyk leadership team expands with key appointments to accelerate innovation` Snyk's founding mission of empowering developers to develop fast while staying secure has never been more critical as generative AI produces more insecure code than ever before. To meet this need, the company is expanding its leadership team with key appointments, including Danny Allan as Chief Technology Officer and Brian Rogan as Executive Vice President of Engineering. Both executives bring extensive experience in technology and security to Snyk, with a proven track record of innovation and success in their previous roles at companies such as Veeam, VMWare, IBM, and Google. With this new leadership, Snyk aims to accelerate its mission to revolutionize secure development and continue to build momentum in the industry.
Feb 06, 2024 492 words in the original blog post.
The Snyk Security Labs team conducted an extensive study into the Docker engine, uncovering four high-severity vulnerabilities (CVE-2024-21626, CVE-2024-23651, CVE-2024-23652, and CVE-2024-23653) that enable attackers to escape container environments. These findings revealed critical flaws in the Docker engine's handling of file systems and mounts, where race conditions were exploited to breach container isolation and access the host system. The research highlighted the use of the Linux tool "strace" to track system calls and identify vulnerabilities in userland applications, emphasizing the need for proper validation and handling of resources to prevent such exploits. By demonstrating the vulnerabilities through detailed proof-of-concept examples, the researchers showcased the potential for container escape, which poses significant security risks to both build and production environments. The team proposed mitigations, including proper use of file descriptors and improved validation techniques, to address these vulnerabilities and enhance Docker's security posture.
Feb 06, 2024 10,279 words in the original blog post.
The GitHub Security Best Practices cheat sheet provides ten essential guidelines for securing GitHub repositories and projects. These best practices include enabling two-factor authentication, limiting access to repositories, preventing the storage of credentials as code, connecting repositories to Snyk for vulnerability scanning, adding a SECURITY.md file, using branch protection rules, rotating SSH tokens and personal keys, automating dependency updates, using private repositories for sensitive data, and being smart about GitHub apps. By implementing these best practices, developers can significantly improve the security posture of their GitHub repositories and projects, reducing the risk of unauthorized access, data exposure, and security breaches.
Feb 05, 2024 3,532 words in the original blog post.