{"id":5087,"date":"2025-09-09T13:26:17","date_gmt":"2025-09-09T13:26:17","guid":{"rendered":"https:\/\/www.newsbeep.com\/il\/5087\/"},"modified":"2025-09-09T13:26:17","modified_gmt":"2025-09-09T13:26:17","slug":"claude-code-runs-code-to-test-if-it-is-safe-which-has-risks-the-register","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/il\/5087\/","title":{"rendered":"Claude Code runs code to test if it is safe, which has risks \u2022 The Register"},"content":{"rendered":"<p>App security outfit Checkmarx says automated reviews in Anthropic&#8217;s Claude Code can catch some bugs but miss others \u2013 and sometimes create new risks by executing code while testing it.<\/p>\n<p>Anthropic introduced <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/www.anthropic.com\/news\/automate-security-reviews-with-claude-code\">automated security reviews<\/a> in Claude Code last month, promising to ensure that &#8220;no code reaches production without a baseline security review.&#8221; The AI-driven review checks for common vulnerability patterns including authentication and authorization flaws, insecure data handling, dependency vulnerabilities, and SQL injection.<\/p>\n<p>Checkmarx <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/checkmarx.com\/zero-post\/bypassing-claude-code-how-easy-is-it-to-trick-an-ai-security-reviewer\/\">reported<\/a> that the \/security-review command\u00a0in Claude Code was successful in finding simple vulnerabilities such as XSS (cross-site scripting) and even an authorization bypass issue that many static analysis tools might miss. However, it was defeated by a remote code execution vulnerability using the Python data analysis library pandas, and wrongly concluded it was a false positive.<\/p>\n<p>A more difficult area is when code is crafted to mislead AI inspection. The researchers did this with a function called &#8220;sanitize,&#8221; complete with a comment describing how it looked for unsafe or invalid input, which actually ran an obviously unsafe process. This passed the Claude Code security review, which declared &#8220;security impact: none.&#8221;<\/p>\n<p>Another problem is that the Claude Code security review generates and executes its own test cases. The potential snag here is that &#8220;simply reviewing code can actually add new risk to your organization,&#8221; the researchers said. The example given involved running a SQL query, which would not normally be a problem for code in development connected to a test database, but one can think of cases when executing code to test its safety would be a bad move, such as when malicious code is hidden in a third-party library.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/il\/wp-content\/uploads\/2025\/09\/claude-warning.jpg\" alt=\"Claude Code warns developers to only use it with code you trust\" title=\"Claude Code warns developers to only use it with code you trust\" height=\"317\" width=\"648\"\/><\/p>\n<p class=\"text_center\">Claude Code warns developers to &#8216;only use it with code you trust&#8217;<\/p>\n<p>Checkmarx does not dismiss the value of AI security review, but asks developers to take note of the warnings the product itself gives, including that &#8220;Claude can make mistakes&#8221; and that &#8220;due to prompt injection risks, only use it with code you trust.&#8221; There is a near contradiction here, in that if the code is completely trusted, a security review would not be necessary.<\/p>\n<p>The researchers conclude with four tips for safe use of AI security review: do not give developer machines access to production; do not allow code in development to use production credentials; require human confirmation for all risky AI actions; and ensure endpoint security to reduce the risk from malicious code in developer environments.<\/p>\n<p>&#8220;Claude Code is a naive assistant, with very powerful tooling: the problem is that this combination of naivety and power make it extremely susceptible to suggestion,&#8221; the researchers state.<\/p>\n<p>It seems obvious, therefore, that entrusting AI with code generation, test generation, and security review cannot be a robust process for creating secure applications without rigorous human oversight, particularly with the unsolved issues around prompt injection and suggestibility. \u00ae<\/p>\n","protected":false},"excerpt":{"rendered":"App security outfit Checkmarx says automated reviews in Anthropic&#8217;s Claude Code can catch some bugs but miss others&hellip;\n","protected":false},"author":2,"featured_media":5088,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[345,343,344,85,46,125],"class_list":["post-5087","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-il","tag-israel","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/5087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/comments?post=5087"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/5087\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media\/5088"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media?parent=5087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/categories?post=5087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/tags?post=5087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}