Welcome!

Unlock your personalized experience.
Sign Up
Tag

Secure coding practices Articles, Guides & Tutorials

4 posts

Amazon Q Developer Extension Compromise: Lessons for AI Tool Security

In July 2025, an attacker got malicious code into version 1.84.0 of the Amazon Q Developer extension for Visual Studio Code. According to AWS security bulletin AWS-2025-015, this happened because a GitHub token in the project's AWS CodeBuild configuration had broader permissions than it needed (CVE-2025-8217).

What Is XSS and How Do You Prevent It in Web Applications?

Cross-site scripting (XSS) is a flaw where a web application includes untrusted data in a page without proper encoding, so an attacker's script runs in another user's browser. It can steal sessions, change page content or perform actions as the victim. Developers prevent XSS mainly through context-aware output encoding, which modern frameworks such as React, Angular, Vue and Django apply by default.

Which of the Following Best Describes Code Injection? With Prevention

Code injection is best described as an attack where untrusted input is inserted into code that the application then interprets and executes in its own language. If a PHP, Python or JavaScript app passes user input to functions such as eval, the attacker's text runs as program code with the app's privileges. MITRE calls this CWE-94, Improper Control of Generation of Code.