Home / Companies / StackHawk / Blog / August 2025

August 2025 Summaries

13 posts from StackHawk

Filter
Month: Year:
Post Summaries Back to Blog
StackHawk has announced the launch of its MCP server, an open-source integration that brings enterprise-grade application security testing directly into AI coding assistants like Cursor, Claude Code, and Windsurf. By leveraging Anthropic’s Model Context Protocol, developers can conduct dynamic application security testing (DAST) and address vulnerabilities without leaving their AI code editors. This development allows for a seamless workflow where developers can scan for vulnerabilities and receive contextual remediation suggestions through simple natural language commands. The integration aims to enhance the speed and efficiency of both security and engineering teams by embedding security expertise directly into the development process, thereby transforming security from a potential bottleneck into an enabler of innovation. The MCP server empowers developers with immediate feedback and the ability to fix issues on-the-fly, reducing the need for deep security expertise and enabling consistent security testing across organizations. This initiative is part of StackHawk’s broader vision of integrating security into the fabric of software development, ensuring that vulnerabilities are addressed as code is written, and paving the way for a future where application security is conversational, contextual, and continuous.
Aug 28, 2025 716 words in the original blog post.
The Model Context Protocol (MCP), introduced by Anthropic in November 2024, is an open standard designed to connect large language models (LLMs) with external data sources and tools, simplifying the integration process and addressing the "N×M problem" of custom connectors. While MCP offers a standardized architecture akin to a client-server model, it also presents significant security challenges, including prompt injection, command injection, and rug pull attacks. These vulnerabilities necessitate a shift in application security practices, drawing parallels to API security, with a focus on continuous monitoring, dynamic testing, and the implementation of robust authentication and authorization mechanisms. As the adoption of MCP by major players like OpenAI accelerates, infrastructure solutions from companies such as Cloudflare and Kong are emerging to enhance security through remote server capabilities and API gateway integration. The rapid evolution of MCP underscores the need for AppSec teams to adapt existing API security strategies to address the unique threats posed by AI-powered applications, ensuring that security remains a priority in the development and deployment of these technologies.
Aug 27, 2025 3,806 words in the original blog post.
AI-assisted coding has revolutionized software development, enabling applications to be built rapidly but introducing significant security challenges. With a vast majority of developers using AI tools, productivity has surged, yet the speed at which insecure code can be generated has also increased, posing risks of vulnerabilities and breaches. Key business challenges include operational, supply chain, knowledge, and compliance risks, necessitating a balance between development speed and security. Strategies for secure AI development include configuring AI tools for security-first development, integrating automated security testing into workflows, real-time monitoring of production applications, and training developers in secure coding practices. These approaches aim to align security protocols with the accelerated pace of AI development, ensuring that software remains secure and compliant while leveraging AI's potential to enhance productivity. As the industry evolves, mastering this balance is crucial for maintaining customer trust and regulatory compliance.
Aug 26, 2025 1,533 words in the original blog post.
Node.js remains a robust platform for developing scalable applications, but it is susceptible to SQL injection attacks if not properly secured. SQL injection is a technique where attackers exploit vulnerabilities in the database layer by injecting malicious SQL code through user input fields, potentially gaining unauthorized access or control over the database. To mitigate these risks, modern best practices emphasize the use of Object-Relational Mappers (ORMs) like Prisma and Drizzle, which provide built-in SQL injection protection through automatic parameterization and type safety. Additionally, employing parameterized queries with native database drivers, comprehensive input validation, and sanitization using libraries like Zod or express-validator are crucial. Implementing database access controls, such as the principle of least privilege, further enhances security. Furthermore, automated security testing tools like StackHawk can integrate into development workflows to identify and address vulnerabilities early in the software development lifecycle. By adopting a multi-layered defense strategy and staying updated with the latest security practices, developers can effectively protect Node.js applications against SQL injection attacks.
Aug 25, 2025 3,577 words in the original blog post.
The rapid integration of AI-assisted coding tools like GitHub Copilot and Cursor has transformed software development by significantly increasing productivity and enabling even non-experts to create applications. However, this speed has introduced security vulnerabilities, as AI-generated code often bypasses established security best practices. To address these challenges, development teams must implement strategies that balance AI's productivity benefits with robust security measures. These strategies include configuring AI tools with security-first rules, integrating automated security testing using tools like StackHawk, and monitoring production environments to detect and respond to security threats in real time. Additionally, ongoing education is crucial for developers to recognize and address security gaps in AI-generated code. By adopting these practices, teams can harness the advantages of AI-driven development while maintaining a strong security posture.
Aug 21, 2025 3,242 words in the original blog post.
Cross-Origin Resource Sharing (CORS) is a vital web security mechanism that allows web applications from one domain to access resources from another, often necessary for Django APIs accessed by frontend applications on different domains. The article explores the intricacies of CORS, including understanding origins, preflight requests, and deciding when CORS is needed, especially in scenarios like public API development, microservices, and multi-domain applications. It suggests configuring CORS within Django itself for better control and maintainability, using the django-cors-headers package which offers comprehensive CORS functionality. Key considerations include selecting specific endpoints and origins for CORS, managing HTTP methods and headers, handling authentication securely, and optimizing performance through preflight caching. The article also emphasizes the importance of testing CORS configurations to prevent vulnerabilities, recommending dynamic application security testing tools like StackHawk to ensure configurations are secure and effective.
Aug 21, 2025 4,894 words in the original blog post.
StackHawk has introduced an AI-powered OpenAPI Spec Generation feature to address the significant challenge of API security testing, particularly the lack of comprehensive API documentation which 85% of security teams cite as a major obstacle. This new tool automates the process of generating OpenAPI specifications from source code, eliminating the need for manual documentation by developers, which is often incomplete or outdated. By analyzing the codebase directly, StackHawk can identify API endpoints, routing patterns, and data models, providing security teams with immediate and accurate specifications that enable dynamic security testing for vulnerabilities. This approach not only streamlines the workflow for AppSec teams by reducing the time from API discovery to testing from weeks to minutes but also ensures that API documentation remains up-to-date with every code change. It addresses blind spots in legacy systems, acquired applications, and shadow APIs, offering a comprehensive and continuously updated view of an organization's API attack surface. The initiative promises to transform API security testing by making it faster, more accurate, and scalable, thus enhancing the overall security posture of modern applications.
Aug 20, 2025 916 words in the original blog post.
GigaOm's 2025 API Security Radar Report identifies StackHawk as a Challenger and Fast Mover, emphasizing its prevention-first approach to API security, which is increasingly important as traditional tools struggle with AI-driven API development. The report highlights the critical disconnect between rapid API development and the lack of integration within security teams, with API-related incidents becoming a major cause of data breaches. StackHawk's recognition stems from its innovative approach that integrates security into CI/CD pipelines, focusing on early vulnerability detection and prevention, source-based API discovery, and developer-first feedback loops. This method contrasts with traditional runtime protection by embedding security testing early in the development cycle, reducing risks and costs. As the market shifts towards proactive API security, the report advises organizations to prioritize agile solutions with a clear roadmap for automation and platformization, warning that those relying on reactive approaches risk falling behind competitors.
Aug 14, 2025 779 words in the original blog post.
Cross-Site Request Forgery (CSRF) attacks pose significant threats to Node.js web applications by exploiting the trust relationship between users and applications, turning legitimate sessions into attack vectors. These attacks leverage the automatic inclusion of authentication credentials in user requests and can be nearly invisible, allowing attackers to perform unauthorized actions like draining bank accounts or modifying sensitive data. Protecting against CSRF involves understanding the attack mechanisms and implementing robust security measures tailored to specific application architectures. Effective strategies include using proper HTTP method usage, enabling the SameSite cookie attribute, validating referrer headers, and implementing CSRF tokens using frameworks like Express.js, Fastify, and Koa.js. Advanced techniques, such as the Double-Submit Cookie Pattern and Synchronizer Token Pattern, offer scalable solutions for both stateful and stateless applications, enhancing security by validating tokens and preventing spoofing. Automated testing with tools like StackHawk can further ensure CSRF protections are effective, providing early detection of vulnerabilities and verifying configurations. By combining these strategies, developers can create secure and resilient Node.js applications that safeguard user interactions against CSRF attacks.
Aug 13, 2025 5,642 words in the original blog post.
Cross-Site Request Forgery (CSRF) is a significant web security vulnerability that allows attackers to trick authenticated users into performing unintended actions on web applications, such as unauthorized fund transfers or account changes, exploiting the automatic inclusion of credentials like cookies in requests. The guide provides an in-depth explanation of CSRF, detailing how these attacks occur, particularly in single-page applications using frameworks like React, Angular, or Vue. It demonstrates the vulnerability with a sample React app and Express server setup and outlines various protection strategies, such as using CSRF tokens, proper HTTP method usage, SameSite cookie attributes, and referrer header validation to counteract potential attacks. Additionally, it emphasizes the importance of automated testing for CSRF vulnerabilities, recommending StackHawk as a dynamic application security testing tool to help developers identify and remediate these issues effectively. The guide also highlights the risks associated with development environments where security features might be disabled and underscores the need for robust CSRF protection mechanisms to safeguard applications from exploitation.
Aug 12, 2025 5,408 words in the original blog post.
SQL injections remain a critical web application security threat, consistently ranking among the top risks on the OWASP Top 10 list since 2007, with vulnerabilities increasing in recent years. These attacks exploit poorly sanitized user inputs to manipulate databases, potentially allowing unauthorized access to sensitive data. The article explores various types of SQL injection attacks, including In-band, Blind, and Out-of-Band SQLi, each with unique mechanisms and impacts. High-profile breaches, like the 2012 LinkedIn data breach and the 2023 MOVEit Transfer incident, highlight the severe consequences of such vulnerabilities. To prevent SQL injections, best practices include using prepared statements, sanitizing inputs, and adhering to the principle of least privilege. Automated security testing in the DevOps pipeline is emphasized as crucial for early detection and prevention. StackHawk offers a solution with its Dynamic Application Security Testing (DAST) platform, providing continuous protection by integrating security testing directly into CI/CD pipelines, thereby enabling rapid detection and remediation of vulnerabilities.
Aug 06, 2025 3,554 words in the original blog post.
Content Security Policy (CSP) is a crucial security feature that protects websites from attacks like cross-site scripting (XSS) and data injection by allowing developers to specify trusted sources for scripts and media, which can be configured through HTTP headers or HTML meta tags. In Angular applications, CSP can be enabled in various ways, such as adding headers directly to server responses, using meta tags for client-side implementation, or leveraging Angular 17's automatic CSP features. While CSP strengthens security by preventing unauthorized script execution and loading only from specified origins, it poses challenges, especially in handling inline scripts common in Angular applications. Developers can choose between options like allowing all inline scripts, using nonces, hashes, or opting for Angular's Ahead-of-Time (AOT) compilation to maintain security. Testing and debugging CSP configurations can be facilitated through browser tools and platforms like StackHawk, which helps identify and fix CSP misconfigurations and other vulnerabilities. Regular review and updates to CSP settings are recommended to ensure robust protection as the application evolves and new dependencies are integrated.
Aug 06, 2025 3,949 words in the original blog post.
Command injection vulnerabilities pose significant threats to modern applications, as evidenced by alerts from CISA and the FBI, which highlight their prevalence and potential for exploitation, particularly in the form of OS command injection. These attacks can lead to severe consequences, including system compromise, data breaches, and regulatory violations. The rapid pace of AI-driven development increases the likelihood of such vulnerabilities being introduced, necessitating close collaboration between security teams and developers to mitigate risks throughout the development lifecycle. Command injection occurs when attackers manipulate applications to execute arbitrary commands via command interpreters, bypassing security controls and gaining system access. Various types of injection attacks exist, including OS, database, and application-level command injections, each with distinct methods and impacts. To combat these threats, comprehensive prevention strategies are essential, focusing on eliminating direct interpreter calls, using parameterized interfaces, implementing robust input validation, and applying contextual output encoding. The document also emphasizes the importance of a multi-layered security approach, integrating protections at the application, infrastructure, and runtime levels, while leveraging tools like StackHawk for continuous API security testing to uncover vulnerabilities that static analysis may miss.
Aug 01, 2025 3,141 words in the original blog post.