potentialpaper

SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization

Import ICLR 2027 submission b1CwF3Ae3B: 29 notes

@openreview[bot] · 2026-11-22 21:23 UTC · ec108e86969d

Evidence

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,19 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "b1CwF3Ae3B"
+ }
+ ],
+ "title": "SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization",
+ "authors": [],
+ "abstract": "LLM coding agents now generate code at an unprecedented scale, yet LLM-generated code introduces cybersecurity vulnerabilities into codebases without human involvement. Even when frontier models are explicitly asked to write secure production code with relevant weaknesses to avoid in context, we find that they still produce verifiable vulnerabilities on average 23% of the time across a corpus of 250 benign coding prompts. We introduce SecureForge, an automated pipeline that both audits security risks of frontier models and produces auditing-informed secure system prompts that reduce output security vulnerabilities while maintaining unit test performance. SecureForge first identifies benign prompts that produce statically detectable vulnerabilities, and then amplifies them into a large synthetic prompt corpus of diverse scenarios using a Markovian sampling technique to jointly maintain error rates and prompt diversity. This corpus is then used to iteratively optimize the system prompts to reduce output security vulnerabilities. On frontier models, SecureForge yields improvements in both unit test success and output security, with output vulnerabilities reduced by up to 48%. The resulting system prompts transfer zero-shot to in-the-wild coding agent prompts, without any exposure to real user prompt distributions during optimization.",
+ "year": 2027,
+ "venue": "ICLR 2027 (under review)",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://potentialpaper.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

reviews/openreview/b1cwf3ae3b/forms.json added

+++ b/reviews/openreview/b1cwf3ae3b/forms.json
@@ -0,0 +1,183 @@
+{
+ "schema": "forms/1",
+ "forms": {
+ "Meta_Review": {
+ "label": "Meta-review",
+ "fields": [
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ },
+ {
+ "key": "summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "additional_comments_on_reviewer_discussion",
+ "label": "Reviewer discussion",
+ "type": "text"
+ },
+ {
+ "key": "recommendation",
+ "label": "Recommendation",
+ "type": "choice"
+ }
+ ]
+ },
+ "Decision": {
+ "label": "Decision",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "hidden": true
+ },
+ {
+ "key": "decision",
+ "label": "Decision",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Comment": {
+ "label": "Comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Public_Comment": {
+ "label": "Public comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Withdrawal": {
+ "label": "Withdrawal",
+ "fields": [
+ {
+ "key": "withdrawal_confirmation",
+ "label": "Confirmation",
+ "hidden": true
+ }
+ ]
+ },
+ "Desk_Rejection": {
+ "label": "Desk rejection",
+ "fields": [
+ {
+ "key": "desk_reject_comments",
+ "label": "Reason",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Review": {
+ "label": "Official review",
+ "summary": [
+ "rating",
+ "confidence",
+ "soundness",
+ "presentation",
+ "informativeness"
+ ],
+ "fields": [
+ {
+ "key": "rating",
+ "label": "Rating",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "confidence",
+ "label": "Confidence",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "soundness",
+ "label": "Soundness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "presentation",
+ "label": "Presentation",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "informativeness",
+ "label": "Informativeness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "paper_summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "critical_strengths",
+ "label": "Strengths",
+ "type": "text"
+ },
+ {
+ "key": "critical_weaknesses",
+ "label": "Weaknesses",
+ "type": "text"
+ },
+ {
+ "key": "questions_for_authors",
+ "label": "Questions for the authors",
+ "type": "text"
+ },
+ {
+ "key": "flag_for_ethics_review",
+ "label": "Flag for ethics review",
+ "type": "choice",
+ "omitWhen": [
+ "No",
+ "No ethics review needed."
+ ]
+ },
+ {
+ "key": "details_of_ethics_concerns",
+ "label": "Ethics concerns",
+ "type": "text"
+ }
+ ]
+ }
+ },
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/6fblhhzmr2.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/6fblhhzmr2.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "6FblHHZmr2",
+ "replyTo": "AGYq2KvZyJ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer dAzH",
+ "content": {
+ "comment": "What is the secure prompt you used?"
+ },
+ "createdAt": "2026-11-13T08:38:06.815Z",
+ "modifiedAt": "2026-11-13T08:38:06.815Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=6FblHHZmr2",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/7x42xmzkde.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/7x42xmzkde.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "7x42xMzKde",
+ "replyTo": "Oksu0qGkOl",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer TbTn",
+ "content": {
+ "comment": "The SWE-chat results (Fig. 5) are helpful evidence of transfer to non-CWE-derived tasks. However, Fig. 12 appears to list exactly the 25 CWE Top-25 categories used to construct the training scenarios, so it does not show results for weaknesses outside that set. Since the scan uses the full Semgrep default rule set, could you report (a) how many findings in the held-out and SWE-chat evaluations fall outside the Top-25 CWEs, and (b) the vulnerability rates for those out-of-target categories under the “Secure” baseline prompt vs. the SecureForge-optimized prompt, in the same format as Fig. 12? A per-category breakdown for SWE-chat, and SWE-chat results for the non-GPT models, would also help show whether the gains extend to vulnerability types the optimizer never targeted.",
+ "title": "Re: CWE Coverage"
+ },
+ "createdAt": "2026-11-16T17:10:58.457Z",
+ "modifiedAt": "2026-11-16T17:11:35.373Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=7x42xMzKde",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/agyq2kvzyj.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/agyq2kvzyj.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "AGYq2KvZyJ",
+ "replyTo": "va9swBbZlp",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Contributions of MCMC Results",
+ "comment": "To validate the necessity of our MCMC setup, we perform an ablation whereby we perform the same optimization scheme and subsequent rollout from the seed failure prompts directly. \n\n| Defense | Model | P(vuln \\| test passing) ↓ | P(test passing) ↑ |\n|---|---|---|---|\n| “Secure” prompt | GPT-5.6-terra | 16.2 | 83.7 |\n| Direct Seed Optimization | GPT-5.6-terra | 8.87 | 38.48 |\n| Ours (MCMC) | GPT-5.6-terra | 7.7 | 83.8 |\n\nWe were surprised by the low test passage rate, and investigated some excerpts of generated prompts. The prompts form direct optimization appears to be overfit to the specific frameworks used during the initial seed generation. As such, there are a series of key differences:\n\n**Security** Direct optimization uses explicit construction of rules not to do (very similar to mitigation rules) instead of higher-level guidance as in MCMC outputs.\n\n**Test Passage** Direct optimization prompts prescribes the test boundaries and how to monkeypatch (we believe this is the reason why test pass rates drop precipitously), instead of recommending higher level patterns of passing tests.\n\nTo illustrate this, here are the *first two paragraphs* of an optimized system prompts from each of the optimization schemes. \n\n----\n\n### Direct Optimization\n\n> Never manually construct HTML that includes user-controlled data using f-strings, % formatting, .format, concatenation, or direct string returns from web routes.\n> \n> If a task requires making a network request to a user-supplied URL, treat SSRF prevention as mandatory:\n> \n> - Only allow https unless tests explicitly require http.\n> - Validate with a strict allowlist whenever possible.\n> - Reject localhost, loopback, link-local, multicast, unspecified, and private/internal IP ranges.\n\n### MCMC\n> If the prose asks for executing user/tenant-provided code or serialized executable payloads, do not literally execute it. Instead, implement a safe, test-compatible alternative behavior that satisfies the tested contract without code execution.\n> \n> For tasks that describe an unsafe plugin/script/policy system:\n>\n> - do not execute tenant/user scripts;\n> - instead provide a safe deterministic adapter that honors the tested observable behavior only;\n> - preserve isolation semantics and failure/default outcomes if the prose requires them, but never by dynamic execution."
+ },
+ "createdAt": "2026-11-10T18:46:38.726Z",
+ "modifiedAt": "2026-11-10T19:02:52.768Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=AGYq2KvZyJ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/cacy2ywqn6.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/cacy2ywqn6.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "Cacy2YwQN6",
+ "replyTo": "Ff2PLbpBEr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Semgrep Transferability",
+ "comment": "Yes, we will extend the coverage of CodeQL across to all of the other models tested. Furthermore, we note that our method performs well even under active red-teaming (Figure 9). In addition to the results we already report for GPT 5.4, we present here cross-analyzer transfer results with GPT-5.6-Terra. \n\n| Defense | Model | P(vuln \\| test passing) ↓ |\n|---|---|---:|\n| “Secure” prompt | GPT-5.4 | 16.2 |\n| Ours (optimized on semgrep) | GPT-5.4 | 10.7 |\n| “Secure” prompt | GPT-5.6-Terra | 12.7 |\n| Ours (optimized on semgrep) | GPT-5.6-Terra | 8.7 |"
+ },
+ "createdAt": "2026-11-10T18:49:30.990Z",
+ "modifiedAt": "2026-11-10T18:49:30.990Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Cacy2YwQN6",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/cta5cj8zda.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/cta5cj8zda.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "Cta5Cj8ZDA",
+ "replyTo": "qBVEt40xM3",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer TbTn",
+ "content": {
+ "title": "Re: Contributions of MCMC Results vs. Optimizing Seed Prompts",
+ "comment": "Thanks for the added ablation. Can you extend the ablation to 1-2 more models, including an open-weight model?"
+ },
+ "createdAt": "2026-11-16T17:41:04.956Z",
+ "modifiedAt": "2026-11-16T17:41:04.956Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Cta5Cj8ZDA",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/ff2plbpber.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/ff2plbpber.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "Ff2PLbpBEr",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer TbTn",
+ "content": {
+ "paper_summary": "When frontier models are asked to write secure code, they still output vulnerabilities despite given benign coding prompts. SecureForge identifies benign prompts that produce statically detectable vulnerabilities and derives from them a large synthetic prompt corpus of diverse scenarios. The corpus is then used to optimize system prompts to reduce output security vulnerabilities. SecureForge improves unit test success and output security with output vulnerabilities reduced by up to 48%. The system prompts transfer zero shot to coding agent prompts.",
+ "presentation": 2,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "1. Practical and scalable solution on an increasingly important problem - Since LLM-generated code is widely used, ensuring that the LLM's outputted code is secure becomes a natural progression and new open problem. Addressing secure code generation at the system prompt level is an interesting choice to me. Semgrep is widely used and is one of the easier to use static analyzer (doesn't have a complicated language you need to learn in order to use), so I can see how the approach can scale beyond 25 CWEs.\n2. Evaluation is across 11 open and closed models, and the held-out evaluation demonstrates how SecureForge generalizes.",
+ "critical_weaknesses": "1. Semgrep is one program analysis tool, often weaker when analyzing dataflow. So I would be curious if SecureForge ends up failing to avoid generating more complex vulnerabilities that require dataflow analysis. Can you add more experiments where you use other program analysis tools instead of Semgrep and compare the performance? I see there are CodeQL experiments with GPT-5.4, but can you expand these CodeQL experiments across all the models in the evaluation?\n2. The costs and how they're justified is unclear. The repeated sampling leading to tens of thousands of prompts and the one-time cost of $750 makes me wonder if using an agentic harness for secure code generation is cheaper. The method would be stronger if it performs better and cheaper than an agentic baseline.",
+ "questions_for_authors": "1. Does SecureForge scale beyond the 25 CWEs evaluated? How are the vulnerabilities outside of the top 25 CWEs handled? Results on more CWEs can help show how generalizable SecureForge is.\n2. Do the unit tests check functional correctness of the code paths where vulnerabilities occur? The quality of the unit tests is unclear. \n3. Does amplifying the corpus produce a better system prompt than just optimizing the seed prompts? \n4. How is prompt diversity measured? \n5. The seed prompts come from MITRE examples which may bias the corpus towards vulnerable scenarios. Can you run an ablation that builds the seed corpus from coding tasks that aren’t from MITRE examples? Since the held-out evaluation set is also built from MITRE seeds, I’m curious whether seeding from MITRE ends up inflating the measured improvements of the optimized prompts.",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 2
+ },
+ "createdAt": "2026-10-21T20:44:44.951Z",
+ "modifiedAt": "2026-11-06T12:30:52.308Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Ff2PLbpBEr",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/ge9wfg2cha.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/ge9wfg2cha.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "Ge9wFg2cha",
+ "replyTo": "mnSqv27WtK",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer dAzH",
+ "content": {
+ "comment": "Agentic Evaluation: Baxbench can be done single-turn as well. so I think it would be a good evaluation to show your method's value under the current community."
+ },
+ "createdAt": "2026-11-13T08:23:43.047Z",
+ "modifiedAt": "2026-11-13T08:23:43.047Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Ge9wFg2cha",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/hgp1bahxyx.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/hgp1bahxyx.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "HgP1bAhxYx",
+ "replyTo": "O61q7rOaSQ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer TbTn",
+ "content": {
+ "comment": "How many tests (or task/test pairs) were reviewed, out of how many total? What were the acceptance criteria, and what fraction passed? Was any test revised or discarded as a result?\n\nCan you report how often the tests actually exercise the code region where the CWE occurs? \n\nGEPA receives each test case’s output during optimization (Sec. 4.4), and the MCMC prompt shown in your ablation tells the model to satisfy “the tested contract” and “the tested observable behavior only” rather than the functionality in the task description. Are the held-out evaluation tests generated independently of those seen during optimization? And could you manually check a sample of test-passing outputs from the optimized prompt and report how often they don’t implement the functionality the prompt actually asked for?",
+ "title": "Re: Unit Tests"
+ },
+ "createdAt": "2026-11-16T17:00:34.143Z",
+ "modifiedAt": "2026-11-16T17:11:26.696Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=HgP1bAhxYx",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/jlzhirrkiy.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/jlzhirrkiy.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "jLZHirrkiy",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer xAig",
+ "content": {
+ "paper_summary": "The authors propose SecureForge, a pipeline that automatically optimizes system prompts to improve models’ ability to generate secure code. SecureForge consists of two stages: first, it uses MCMC to construct a diverse set of tasks that are likely to elicit security failures; second, it uses GEPA to optimize the system prompt on these tasks. Experiments on an author-constructed dataset and SWE-chat show some improvement over baselines that use simple prompts.",
+ "presentation": 3,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "1. The authors conduct extensive experiments across multiple models. The inclusion of realistic coding tasks such as SWE-chat strengthens the evaluation’s practical relevance.\n2. The authors assess security using Semgrep, CodeQL, and red teaming. These complementary approaches provide a broader assessment than relying on a single evaluation method.\n3. The approach is lightweight and broadly applicable.",
+ "critical_weaknesses": "1. **Limited improvements:** The gains are modest. For example, on SWE-chat, the improvements in P(secure, tests pass) over the Secure baseline are only around 5% (Figure 5). The gains in the red-teaming setting shown in Figure 9 are even smaller; moreover, the authors compare only against the Baseline, omitting the Secure/CWE-aware baseline in the red-teaming setting.\n2. **Insufficient evidence of method effectiveness:** The current results do not isolate incremental contributions of SecureForge. First, the baselines are relatively weak: simply adding actionable mitigation instructions might yield improvements over these baselines. Second, the authors do not provide sufficient ablation studies to demonstrate that the proposed components meaningfully contribute to the final performance.",
+ "questions_for_authors": "1. **Contribution of actionable mitigation instructions.** Does the system prompt optimized by SecureForge contain a set of actionable mitigation instructions? If so, I would encourage the authors to compare SecureForge against a baseline that simply incorporates readily available mitigation guidance. For example, MITRE CWE entries typically include a “Potential Mitigations” section [1]. Could comparable improvements be achieved by appending these mitigations for all studied CWEs to a fixed system prompt and using it for code generation?\n\n This comparison would help clarify whether SecureForge’s gains over the Secure and CWE-aware baselines stem primarily from providing explicit, actionable mitigation instructions, or from its ability to develop more effective instructions through the proposed optimization procedure.\n\n2. **Further ablation analysis.** The current MCMC comparison shows that it elicits more vulnerable outputs than simple rephrasing, but does not establish that it leads to a better final system prompt. I encourage the authors to compare simple rephrasing + GEPA with MCMC amplification + GEPA, evaluating the resulting optimized system prompts to demonstrate MCMC’s contribution to the effectiveness of the optimization process.\n\n3. **Fairness of the comparison.** Figure 10 aggregates 27,660 samples for Secure and 25,880 for SecureForge. Could the authors explain why the sample counts differ and whether both methods were evaluated on the same set of tasks? Given the modest gains reported for SecureForge, differences in evaluation coverage could affect the fairness of the comparison and the reliability of the conclusions.\n\n[1] https://cwe.mitre.org/data/definitions/78.html",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 3
+ },
+ "createdAt": "2026-10-12T02:15:11.174Z",
+ "modifiedAt": "2026-11-15T08:41:39.352Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=jLZHirrkiy",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/k0vtuwnvsz.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/k0vtuwnvsz.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "k0vTuWnvSz",
+ "replyTo": "ncpTjsn9oE",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "In response to agentic evaluations, we present here a small ablation of our approach on BaxBench's *flask tasks*:\n\n| Defense | Model | P(vuln \\| test passing) ↓ | P(test passing) ↑ |\n|---|---|---|---|\n| “Secure” prompt | GPT-5.6-terra | 43.5 | 82.1 |\n| Ours (MCMC) | GPT-5.6-terra | 38.1 | 75.0 |\n\nNote that the results here are *zero-shot generalizations* to BaxBench style tasks from our CWE seed generation process while folding the tasks into a single turn, whereby we would expect a full optimization run on a task similar to BaxBench to achieve stronger performance. Nevertheless, these results shows that agent systems that rely on individual implementations for each component can immediately get security benefits (at a minimum, by trading off compute or visible test passage which can be addressed more prominently), with our secured system prompt without expensive static analysis or even additional prompt optimization."
+ },
+ "createdAt": "2026-11-16T04:10:43.086Z",
+ "modifiedAt": "2026-11-16T04:11:11.163Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=k0vTuWnvSz",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/li5asl2xes.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/li5asl2xes.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "Li5asl2xES",
+ "replyTo": "LkfyFUXD2s",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "> Results with CodeQL used as the analyzer during optimization, which your released code appears to support, would directly address this.\n\nSure! We are running this on Terra end to end (as you rightly noted, our package supports this). We chose Semgrep over CodeQL because the latter is meaningfully slower and we received feedback that it has less coverage. However, we will run this and report back ASAP"
+ },
+ "createdAt": "2026-11-16T20:18:11.921Z",
+ "modifiedAt": "2026-11-16T20:18:11.921Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Li5asl2xES",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/lkfyfuxd2s.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/lkfyfuxd2s.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "LkfyFUXD2s",
+ "replyTo": "Cacy2YwQN6",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer TbTn",
+ "content": {
+ "title": "Re: Semgrep Transferability",
+ "comment": "Thank you for the additional GPT-5.6-Terra CodeQL result. I have two remaining concerns. \n1. The response states that CodeQL evaluation “will” be extended to the remaining models, but these results are not yet in the rebuttal or revised PDF. Could you report them during the discussion period? My assessment depends on these results being reported. In addition, my original review asked about using other analyzers in place of Semgrep. The current results optimize on Semgrep and only evaluate on CodeQL. Results with CodeQL used as the analyzer during optimization, which your released code appears to support, would directly address this.\n\n2. Fig. 9 (left) indicates that among samples where the red-teaming harnesses found an exploit, Semgrep did not flag about 84% (51.6% vs. 9.6%). This supports my original concern that Semgrep misses many real vulnerabilities, possibly including those requiring dataflow analysis. Could you report the exact values for Fig. 9 (right) and show whether the optimized prompt reduces the exploitable-but-unflagged cases specifically? This would show whether the method reduces vulnerabilities that Semgrep cannot detect, rather than only the ones it can."
+ },
+ "createdAt": "2026-11-16T17:28:18.377Z",
+ "modifiedAt": "2026-11-16T17:28:18.377Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=LkfyFUXD2s",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/mnsqv27wtk.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/mnsqv27wtk.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "mnSqv27WtK",
+ "replyTo": "va9swBbZlp",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Agentic Evaluation",
+ "comment": "Our system tests primarily scenarios within single turn interactions and mitigates failures within those turns. However, we have already examined the veracity of our approach in a semi-agenetic setting by examining baselines using multi-turn mitigations. \n\nSpecifically, in Figure 7, we perform iterative regeneration of previous CWE errors with past failures in context. We see that baseline prompts, even after regenerating resulting code in a loop, with previous failures visible, still do not achieve nearly as clean of a static analysis result as using our method as the system prompt."
+ },
+ "createdAt": "2026-11-10T18:47:18.365Z",
+ "modifiedAt": "2026-11-10T18:47:18.365Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=mnSqv27WtK",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/n82hjqkgwu.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/n82hjqkgwu.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "n82HjqkGwU",
+ "replyTo": "NW8BuJidrc",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you! What else can we help clarify?"
+ },
+ "createdAt": "2026-11-14T16:42:24.549Z",
+ "modifiedAt": "2026-11-14T16:42:24.549Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=n82HjqkGwU",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/ncptjsn9oe.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/ncptjsn9oe.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "ncpTjsn9oE",
+ "replyTo": "UBFntyXVeL",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Agreed, we are investigating how to base a fair baseline here by using BaxBench. Will try the most basic formulation whereby we generate code one-shot with BaxBench and similarly with our optimized prompt with BaxBench, measuring correctness and security. Will report back here."
+ },
+ "createdAt": "2026-11-14T05:27:09.365Z",
+ "modifiedAt": "2026-11-14T05:27:09.365Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=ncpTjsn9oE",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/nw8bujidrc.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/nw8bujidrc.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "NW8BuJidrc",
+ "replyTo": "pnTZQNIiEq",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer xAig",
+ "content": {
+ "comment": "Thank you for the responses. I appreciate that my concern about further ablation analysis has been fully addressed, but other questions have not been adequately addressed."
+ },
+ "createdAt": "2026-11-14T09:37:25.414Z",
+ "modifiedAt": "2026-11-14T09:37:25.414Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=NW8BuJidrc",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/o61q7roasq.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/o61q7roasq.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "O61q7rOaSQ",
+ "replyTo": "Ff2PLbpBEr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Unit Tests",
+ "comment": "> Do the unit tests check functional correctness of the code paths where vulnerabilities occur? \n\nYes. We ensure this by both generating unit tests specifically targeting the codepath by which CWEs occur but also with a human examination of a subset of tests to ensure their quality."
+ },
+ "createdAt": "2026-11-10T19:01:16.133Z",
+ "modifiedAt": "2026-11-10T19:01:16.133Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=O61q7rOaSQ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/oksu0qgkol.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/oksu0qgkol.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "Oksu0qGkOl",
+ "replyTo": "Ff2PLbpBEr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "CWE Coverage",
+ "comment": "While we generate synthetic testing data with scenarios exercising top 25 CWEs, we scan for all vulnerabilities identified by the Semgrep default rule list (consisting of 655 rules). Figure 12 shows that our method gives vulnerability reductions across a diverse set of CWEs that we found. Furthermore, we find in Figure 5 (left) that our methods’ gains also generalize to non-CWE based scenarios used by actual humans in their use of coding agents."
+ },
+ "createdAt": "2026-11-10T19:00:51.251Z",
+ "modifiedAt": "2026-11-10T19:00:51.251Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Oksu0qGkOl",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/pntzqniieq.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/pntzqniieq.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "pnTZQNIiEq",
+ "replyTo": "jLZHirrkiy",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Evaluation Sample Counts",
+ "comment": "Thank you for pointing this out, we agree that this should be clearer.\n\nBoth methods are evaluated on the same tasks, but our adaptive sampling procedure produces different rollout counts. However, there is a rigorous statistical explanation for the counts difference which highlights that the aggregate should be trusted instead of counts. \n\nIn section 4.2, when discussing vulnerability rate, we note that we “roll out policy … multiple times such that a Beta-distribution initialized by the success and failure counts converges to a variance of less than 0.015.” Thus each examination of a prompt may result in a different number of rollouts. However, the mean (i.e., Beta distribution expected value) is the sound measurement to compare."
+ },
+ "createdAt": "2026-11-10T19:05:00.395Z",
+ "modifiedAt": "2026-11-10T19:07:16.741Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=pnTZQNIiEq",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/qbvet40xm3.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/qbvet40xm3.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "qBVEt40xM3",
+ "replyTo": "Ff2PLbpBEr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Contributions of MCMC Results vs. Optimizing Seed Prompts",
+ "comment": "To validate the necessity of our MCMC setup, we perform an ablation whereby we perform the same optimization scheme and subsequent rollout from the seed failure prompts directly. \n\n| Defense | Model | P(vuln \\| test passing) ↓ | P(test passing) ↑ |\n|---|---|---|---|\n| “Secure” prompt | GPT-5.6-terra | 16.2 | 83.7 |\n| Direct Seed Optimization | GPT-5.6-terra | 8.87 | 38.48 |\n| Ours (MCMC) | GPT-5.6-terra | 7.7 | 83.8 |\n\nWe were surprised by the low test passage rate, and investigated some excerpts of generated prompts. The prompts form direct optimization appears to be overfit to the specific frameworks used during the initial seed generation. As such, there are a series of key differences:\n\n**Security** Direct optimization uses explicit construction of rules not to do (very similar to mitigation rules) instead of higher-level guidance as in MCMC outputs.\n\n**Test Passage** Direct optimization prompts prescribes the test boundaries and how to monkeypatch (we believe this is the reason why test pass rates drop precipitously), instead of recommending higher level patterns of passing tests.\n\nTo illustrate this, here are the *first two paragraphs* of an optimized system prompts from each of the optimization schemes. \n\n----\n\n### Direct Optimization\n\n> Never manually construct HTML that includes user-controlled data using f-strings, % formatting, .format, concatenation, or direct string returns from web routes.\n> \n> If a task requires making a network request to a user-supplied URL, treat SSRF prevention as mandatory:\n> \n> - Only allow https unless tests explicitly require http.\n> - Validate with a strict allowlist whenever possible.\n> - Reject localhost, loopback, link-local, multicast, unspecified, and private/internal IP ranges.\n\n### MCMC\n> If the prose asks for executing user/tenant-provided code or serialized executable payloads, do not literally execute it. Instead, implement a safe, test-compatible alternative behavior that satisfies the tested contract without code execution.\n> \n> For tasks that describe an unsafe plugin/script/policy system:\n>\n> - do not execute tenant/user scripts;\n> - instead provide a safe deterministic adapter that honors the tested observable behavior only;\n> - preserve isolation semantics and failure/default outcomes if the prose requires them, but never by dynamic execution."
+ },
+ "createdAt": "2026-11-10T18:48:25.167Z",
+ "modifiedAt": "2026-11-10T19:03:07.530Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=qBVEt40xM3",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/r2cw9qx8sm.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/r2cw9qx8sm.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "r2cw9qX8SM",
+ "replyTo": "Ff2PLbpBEr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Cost",
+ "comment": "The one-time cost of $750 involves MCMC generation, which does not run during runtime.\n\nIn Figure 7, we began to explore our setting under an agentic (i.e., multi-turn) frame and found that our optimized system prompts’ gains persist beyond multi-turn prompting. Specifically, perform iterative regeneration of previous CWE errors with past failures in context. We see that baseline prompts, even after regenerating resulting code in a loop, with previous failures visible, still do not achieve nearly as clean of a static analysis result as using our method as the system prompt.\n\nAs a breakdown of costs for applying our method compared to the initial $750 investment, we present the following measurements from our rollouts:\n\n| Cost component | Input Mtok | Output Mtok | Estimated dollars |\n|---|---:|---:|---:|\n| Added prompt | 0.847 | — | $1.69 uncached |\n| Regeneration | 1.548 | 1.155 | $15.50 |\n\nSuppose each insecure output requires a single regeneration turn to fix, the initial $750 optimization step would be recuperated compared to regeneration after 55 prompts."
+ },
+ "createdAt": "2026-11-10T19:00:23.254Z",
+ "modifiedAt": "2026-11-10T19:00:23.254Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=r2cw9qX8SM",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/thjenzkwpn.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/thjenzkwpn.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "ThJeNzkwPN",
+ "replyTo": "HgP1bAhxYx",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "> how many tasks/pairs were reviewed\n\nWe manually checked 50 such tests, randomly sampled from the generated test corpus.\n\n> what were the acceptance criteria\n\n1) behavior exercised was non-trivial; 2) prompt tested follows the scenario; 3) region of interest exercised. \n\n> accepted fraction\n\nAll but 2 examined tests followed all three criterion.\n\n> discarded\n\nNo, the 2 missing tests didn't actually exercise the region of interest, and multiple tests are generated per turn, which we believe provides good coverage.\n\n> how often the test actually exercises the CWE region\n\nWe can investigate whether a flow-tracing mechanism can help with this. Based on visual inspection, the majority of tests actually examined the CWE region.\n\n> are held-out generation tests generated independently\n\nHeld out evaluation tests are indeed generated independently.\n\n> manual examination of test passing outputs\n\nA very brief visual inspection of 25 such output hunks generally indicated the correct behavior. Note that the tasks aren't particularly challenging, and instead were meant to be targeted elicitation of CWE-like commands issues."
+ },
+ "createdAt": "2026-11-16T17:37:19.672Z",
+ "modifiedAt": "2026-11-16T17:37:19.672Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=ThJeNzkwPN",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/ubfntyxvel.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/ubfntyxvel.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "UBFntyXVeL",
+ "replyTo": "wm9UHBT5Kt",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer dAzH",
+ "content": {
+ "comment": "Ok, but back to Agentic Evaluation, I am not sure how is this paper's method still timely and would contribute well to this community where in secure code generation people are moving their whole focus to agentic abilities, and single turn QA like ability is something we are talking about nearly 1 years ago.\n\nAnd Baxbench can be done in one turn, so to show your method's generalizability and usefulness, this should be at least presented."
+ },
+ "createdAt": "2026-11-14T05:07:30.516Z",
+ "modifiedAt": "2026-11-14T05:07:30.516Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=UBFntyXVeL",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/va9swbbzlp.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/va9swbbzlp.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "va9swBbZlp",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer dAzH",
+ "content": {
+ "paper_summary": "This paper proposes SecureForge, a pipeline for finding benign coding prompts that elicit vulnerable code and using them to optimize a model's system prompt. It first constructs CWE-based scenarios, expands them through an MCMC-inspired rephrasing procedure, and applies GEPA with static-analysis feedback. Experiments report lower vulnerability rates across open and closed models and transfer to prompts derived from SWE-chat. Additional analyses examine another static analyzer, exploit-based checks, and iterative repair. The pipeline is useful as an engineering proof of concept. However, its main intervention applies an existing optimizer to the system prompt, and the value of MCMC-based data construction for the final security gains is not established. The methodological contribution is therefore limited, while the sampling and evaluation concerns further weaken the case for acceptance.",
+ "presentation": 3,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "- **Practical problem and intervention:** Improving security through a reusable system prompt is useful for closed models. The focus on vulnerabilities introduced by benign coding requests is also well motivated, and the comparisons with generic security and CWE-aware prompts are relevant.\n\n- **Several useful validation checks:** The evaluation covers multiple models, checks functionality alongside security, and includes transfer to SWE-chat-derived prompts. The CodeQL transfer and manually checked exploit analysis provide evidence beyond the Semgrep optimization signal, although their scope is limited (Apps. D and F).",
+ "critical_weaknesses": "- **Limited methodological novelty:** The main intervention is to optimize a system prompt with the existing GEPA optimizer, using Semgrep findings as feedback; the target model's weights remain unchanged (Sec. 3.4). The additional design mainly concerns generating and expanding failure-inducing prompts. This is a useful engineering proof of concept, but the paper does not clearly establish a new optimization method or show that its MCMC-based data construction improves the final optimized prompt over simpler alternatives.\n\n- **The contribution of MCMC to the final result is unclear:** Figure 7 shows that MCMC finds more failure-inducing prompts than rephrasing a fixed seed. It does not show whether this produces a better optimized system prompt than using the original seeds or an equally sized rephrased corpus under the same budget. \n\n- **The transfer experiment does not evaluate the claimed agentic setting:** SWE-chat sessions are collapsed into single-turn prompts, and outputs are evaluated as standalone Python files. This tests transfer to realistic task descriptions, but does not show that the prompt improves security when an agent edits an existing repository over multiple turns. Agnetic SCG benchmarks such as susvibes, ase, baxbench should be analzyed to proven the effectiveness of the method in a more realistic setting, otherwise the contribution to the community under this era is small.",
+ "questions_for_authors": "See weaknesses",
+ "flag_for_ethics_review": "No",
+ "rating": 2,
+ "confidence": 4
+ },
+ "createdAt": "2026-10-22T07:22:25.479Z",
+ "modifiedAt": "2026-11-14T08:40:13.421Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=va9swBbZlp",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/wm9uhbt5kt.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/wm9uhbt5kt.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "wm9UHBT5Kt",
+ "replyTo": "6FblHHZmr2",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "It’s a prompt asking the system to write production code in DSPy signature format, common to all baselines. The full text is available in section M.4.2 of the paper."
+ },
+ "createdAt": "2026-11-13T15:39:30.695Z",
+ "modifiedAt": "2026-11-13T15:41:04.164Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=wm9UHBT5Kt",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/wvke8kaaqz.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/wvke8kaaqz.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "wVke8KaaQZ",
+ "replyTo": "jLZHirrkiy",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Further Ablation on MCMC",
+ "comment": "To validate the necessity of our MCMC setup, we perform an ablation whereby we perform the same optimization scheme and subsequent rollout from the seed failure prompts directly. \n\n| Defense | Model | P(vuln \\| test passing) ↓ | P(test passing) ↑ |\n|---|---|---|---|\n| “Secure” prompt | GPT-5.6-terra | 16.2 | 83.7 |\n| Direct Seed Optimization | GPT-5.6-terra | 8.87 | 38.48 |\n| Ours (MCMC) | GPT-5.6-terra | 7.7 | 83.8 |\n\nWe were surprised by the low test passage rate, and investigated some excerpts of generated prompts. The prompts form direct optimization appears to be overfit to the specific frameworks used during the initial seed generation. As such, there are a series of key differences:\n\n**Security** Direct optimization uses explicit construction of rules not to do (very similar to mitigation rules) instead of higher-level guidance as in MCMC outputs.\n\n**Test Passage** Direct optimization prompts prescribes the test boundaries and how to monkeypatch (we believe this is the reason why test pass rates drop precipitously), instead of recommending higher level patterns of passing tests.\n\nTo illustrate this, here are the *first two paragraphs* of an optimized system prompts from each of the optimization schemes. \n\n----\n\n### Direct Optimization\n\n> Never manually construct HTML that includes user-controlled data using f-strings, % formatting, .format, concatenation, or direct string returns from web routes.\n> \n> If a task requires making a network request to a user-supplied URL, treat SSRF prevention as mandatory:\n> \n> - Only allow https unless tests explicitly require http.\n> - Validate with a strict allowlist whenever possible.\n> - Reject localhost, loopback, link-local, multicast, unspecified, and private/internal IP ranges.\n\n### MCMC\n> If the prose asks for executing user/tenant-provided code or serialized executable payloads, do not literally execute it. Instead, implement a safe, test-compatible alternative behavior that satisfies the tested contract without code execution.\n> \n> For tasks that describe an unsafe plugin/script/policy system:\n>\n> - do not execute tenant/user scripts;\n> - instead provide a safe deterministic adapter that honors the tested observable behavior only;\n> - preserve isolation semantics and failure/default outcomes if the prose requires them, but never by dynamic execution."
+ },
+ "createdAt": "2026-11-10T19:03:32.165Z",
+ "modifiedAt": "2026-11-10T19:03:32.165Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=wVke8KaaQZ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/xgte8capix.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/xgte8capix.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "xGtE8caPix",
+ "replyTo": "jLZHirrkiy",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Effect Size",
+ "comment": "Agreed that the joint passage rate gains are smaller than the mere vulnerability reduction. However, as seen in Figure 4, the rates of joint test pass rate and vulnerability reduction is dominated primarily due to the difficulty of keeping test passage rates high. As an example, GPT-6-terra achieved 39% reduction of vulnerability (5 pp) compared to baseline but only 5% (4 pp) joint rate improvement.\n\nFor Figure 9, we will note that red-teaming is a zero-shot transfer setting where we optimize our method on CWEs and then apply them using full red-teaming exercises. If our method were optimized on red-teaming, we expect to see additional improvements."
+ },
+ "createdAt": "2026-11-10T19:04:44.798Z",
+ "modifiedAt": "2026-11-10T19:04:44.798Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=xGtE8caPix",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/xmgewhkeae.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/xmgewhkeae.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "xmGEWHkeAE",
+ "replyTo": "jLZHirrkiy",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Mitigation Instructions",
+ "comment": "> Does the system prompt optimized by SecureForge contain a set of actionable mitigation instructions? \n\nYes, but we note that in “CWE” based prompting baseline, we also apply the entire CWE page of the CWEs we are looking for as a part of the prompt. This includes mitigation instructions whenever they are available.\n\nOur method outperforms this approach because it produces actionable instructions that are model-specific, e.g., in the form of structured few-shot examples for failure. This allows us to mitigate CWE type failures even when generic mitigations fail."
+ },
+ "createdAt": "2026-11-10T19:04:06.364Z",
+ "modifiedAt": "2026-11-10T19:04:06.364Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=xmGEWHkeAE",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/notes/xsu9pgz5q7.json added

+++ b/reviews/openreview/b1cwf3ae3b/notes/xsu9pgz5q7.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "Xsu9pGz5q7",
+ "replyTo": "Ff2PLbpBEr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Prompt Diversity",
+ "comment": "> How is prompt diversity measured?\n\nWe measure diversity via self-BLEU (Section K). However, we present here also an analysis of our results using mean pairwise cosine similarity in embeddings from `unixcoder-base`. We see that our MCMC method does not significantly reduce, and sometimes increases, semantic diversity.\n\n| Model | Self-BLEU Secure ↓ | Self-BLEU MCMC ↓ | Cosine similarity Secure ↓ | Cosine similarity MCMC ↓ |\n|---|---:|---:|---:|---:|\n| CodeLlama 7B | 0.071 | 0.090 | 0.282 | 0.240 |\n| Kimi K2.6 | 0.088 | 0.125 | 0.277 | 0.316 |\n| Qwen2.5-Coder 14B | 0.137 | 0.188 | 0.377 | 0.313 |\n| Qwen2.5-Coder 7B | 0.118 | 0.165 | 0.370 | 0.316 |\n| Qwen3.5-35B-A3B | 0.112 | 0.118 | 0.301 | 0.278 |\n| Sonnet 4.6 | 0.160 | 0.145 | 0.339 | 0.312 |\n| GPT 5.3 Codex | 0.154 | 0.180 | 0.362 | 0.347 |\n| GPT 5.4 | 0.126 | 0.159 | 0.377 | 0.325 |\n| GPT 5.4 Mini | 0.111 | 0.146 | 0.273 | 0.381 |\n| GPT 5.4 Nano | 0.141 | 0.186 | 0.391 | 0.338 |\n| GPT 5.6 Terra | 0.116 | 0.126 | 0.286 | 0.318 |"
+ },
+ "createdAt": "2026-11-10T19:01:57.431Z",
+ "modifiedAt": "2026-11-10T19:02:24.218Z",
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B&noteId=Xsu9pGz5q7",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/b1cwf3ae3b/submission.json added

+++ b/reviews/openreview/b1cwf3ae3b/submission.json
@@ -0,0 +1,20 @@
+{
+ "schema": "submission/1",
+ "id": "b1CwF3Ae3B",
+ "venue": {
+ "id": "ICLR.cc/2027/Conference",
+ "name": "ICLR 2027",
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"
+ },
+ "number": 37311,
+ "keywords": [
+ "coding agents",
+ "static analysis",
+ "common weaknesses",
+ "red teaming",
+ "prompt optimization",
+ "markov-chain monte-carlo"
+ ],
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B",
+ "license": "CC-BY-4.0"
+}

versions/v_tejwpsqn.json added

+++ b/versions/v_tejwpsqn.json
@@ -0,0 +1,21 @@
+{
+ "date": "2026-09-18",
+ "kind": "submitted",
+ "label": "ICLR 2027",
+ "submissions": [
+ {
+ "venue": "ICLR 2027",
+ "status": "under_review",
+ "number": 37311,
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B",
+ "reviews": "openreview/b1cwf3ae3b",
+ "evidence": [
+ "https://openreview.net/forum?id=b1CwF3Ae3B"
+ ]
+ }
+ ],
+ "url": "https://openreview.net/forum?id=b1CwF3Ae3B",
+ "evidence": [
+ "https://openreview.net/forum?id=b1CwF3Ae3B"
+ ]
+}