The Effect of Security-Focused Prompts on Reported Findings: A Controlled Experiment on 400 AI-Generated Web Applications
Darko Andročec
Abstract
Agentic coding tools turn a specification into a running web application, so their defaults for authentication, sessions, input validation, and dependencies become its security posture. This study asks whether appending a fixed block of OWASP-aligned security requirements to the prompt changes what such tools produce, by how much, and with what side effects. Each of 100 frozen specifications was realized four times: two agentic tools (Claude Code, Codex CLI) crossed with two prompts sharing a byte-identical functional core, without (A) and with (B) the security block. A fixed static and dynamic pipeline scanned the 400 applications, yielding 6,721 triaged findings, analyzed with count and logistic mixed models and with a dependency diff. The block cut findings per application by a third (incidence-rate ratio 0.65, 95% CI 0.60-0.71), equally through both tools, and roughly doubled the declared dependency surface, so variant-B applications carried more high-severity dependency advisories. Adjusted for that surface the advisory rate did not rise (flat per application, 18% lower in aggregate), while high-severity findings in first-party source fell by nearly half. Security-focused prompting is therefore an inexpensive and portable improvement, but it enlarges the dependency surface that has to be audited against it, an effect of library selection rather than of the security requirements themselves.
Review reports
xPeerd (AI review)
AI Review (xPeerd — DAReview)
Summary
This manuscript investigates whether adding a fixed OWASP-aligned security block to prompts changes the security outcomes of agentic coding tools that generate complete web applications. The study uses a fully crossed design over 100 specifications, 2 tools, and 2 prompt variants, yielding 400 generated applications scanned through a fixed analysis pipeline. The central result is that the security-focused prompt variant is associated with about 35% fewer reported findings overall, with similar effects across both tools. However, the same variant also increases declared dependency surface and, in unadjusted terms, raises the number of high-severity dependency advisories. The manuscript’s principal strength is that it studies whole applications rather than snippets and explicitly traces the apparent severity paradox to dependency expansion rather than first-party code deterioration. The work is timely, clearly motivated, and methodologically more rigorous than many prompt-comparison studies in this area. Its main weaknesses are acknowledged by the author but remain substantial: the intervention confounds security semantics with prompt length and implementation scope, the outcome measure is scanner-reported findings rather than validated vulnerabilities, language comparisons are not substantively interpretable because tool coverage differs across ecosystems, and some inferential claims are stronger than the design cleanly supports. Overall, I find the paper coherent, relevant, and potentially publishable after major revision focused on causal identification, interpretive restraint, and sharper presentation of what is and is not established by the data.
Potential Major Revisions
- Causal attribution remains too strong relative to the admitted design confound.
The manuscript claims that “The functional portion of every prompt was byte-identical across the four conditions of a specification, so any systematic difference in scan results is attributable to the tool, the security block, or their interaction” and later states that the study “characterizes the instruction’s effect on the delivered artifact” . Yet the paper itself concedes a major internal-validity problem: “variant B confounds security semantics with implementation scope: its prompt is longer and more prescriptive, and it demonstrably causes more functionality and more dependencies to be produced, so the design cannot attribute either the reduction in findings or the change in severity composition to security wording alone” . This is not a minor caveat; it directly limits the headline causal claim. As written, parts of the title, abstract, introduction, and conclusions still read as though the paper estimates the effect of “security-focused prompts” per se, when the experiment more precisely estimates the effect of one particular augmented prompt package. I recommend systematically softening causal language throughout and distinguishing “the tested variant-B prompt bundle” from “security-focused prompting” as a general intervention.
- The title and abstract risk overgeneralization beyond what the design can support.
The title, “The Effect of Security-Focused Prompts on Reported Findings: A Controlled Experiment on 400 AI-Generated Web Applications,” is strong and attractive, but it implies a broader causal class than the actual intervention justifies . Likewise, the abstract says the security block “cut findings per application by a third” and concludes that “Security-focused prompting is therefore an inexpensive and portable improvement” . Given the admitted confound and the dependence on scanner-reported outcomes, “portable improvement” is somewhat overstated. The result is promising, but not yet fully portable in the sense of isolating the active ingredient. A more defensible framing would emphasize that, under this exact prompt design and pipeline, the augmented prompt variant reduced reported findings while increasing dependency surface.
- The endpoint is useful but epistemically weaker than some interpretations suggest.
The manuscript appropriately states that “Outcomes are tool-reported findings, not adjudicated exploitable vulnerabilities” and that a findings count is “a noisy proxy whose absolute level is not interpretable” . This is a sound limitation, but downstream rhetoric occasionally exceeds it. For instance, the conclusions say the instruction “reduced reported security findings by about one third” and then draw practical recommendations for default practice . That recommendation may be reasonable, but the paper should more clearly separate evidence about scanner outputs from evidence about real-world exploitability. At minimum, some sentences should explicitly remind readers that reductions are in reported findings under this instrumented pipeline, not in validated vulnerabilities or breach risk.
- The novelty claim should be phrased more cautiously.
The manuscript states that it is “to the author’s knowledge, the largest controlled comparison of security-focused against neutral prompting over complete applications generated end-to-end by agentic tools, and the first to cross that instruction with two independently developed tools” . The paper does describe a targeted search and positions itself carefully , which is good practice. Still, because this field is moving quickly and the search date is August 2026, the novelty claim should be kept explicitly contingent everywhere it appears. I do not see evidence of fabrication here, but broad “largest” and “first” claims in fast-moving AI-security literature can age badly unless tightly hedged and linked to the defined scope.
- The interpretation of high-severity findings is strong, but the manuscript should make the first-party/dependency distinction even harder to miss.
One of the paper’s most valuable findings is the decomposition showing that “High-severity findings in the applications’ own source code ... fell from 103 under variant A to 54 under variant B, while high-severity dependency advisories rose from 198 to 344” . This resolves what would otherwise look like a contradiction. However, many readers will stop at the statement that variant B increased the odds of high-severity findings, e.g., “a finding generated under variant B had higher odds of being high severity” . Since this could easily be misread as evidence that security prompting worsened code security, the abstract and early results should foreground the decomposition sooner. The manuscript already has the necessary evidence; it should restructure the narrative so the apparent paradox is not temporarily left hanging.
- The dependency-surface explanation is compelling but partly observational and should not be over-read.
The manuscript states that “Three anchor packages carry all of” the surplus advisories and later infers that “the high-severity exposure introduced under variant B is attributable to library selection rather than to the security requirements themselves” . This is plausible and probably correct, but the paper also notes that the package-list comparison is “post-hoc,” “hypothesis-generating,” and based on observational partitioning rather than randomization . The manuscript should more explicitly preserve that caution in all places where it recommends named chain-free libraries. The proposal is useful, but still a proposed follow-up rather than directly established intervention evidence.
- Generalizability is limited by authored specifications and small-to-medium application scope.
The manuscript candidly acknowledges that “The applications are small-to-medium web applications rather than large systems, and the specifications were authored by the researcher rather than sampled from industry backlogs” . This is an important limitation. Because the specifications are researcher-authored and frozen, the study has strong internal standardization but weaker ecological representativeness. The conclusions should more clearly distinguish likely applicability to greenfield app generation from applicability to repository-scale maintenance, which the discussion already suggests using SusVibes as a boundary condition .
- No formal power analysis is not fatal, but the manuscript should justify precision targets more explicitly.
The methods section says that “The catalog size was fixed before generation on grounds of yield rather than a power calculation” and that “no formal power analysis was performed” . In empirical software engineering this can be acceptable, but the paper would benefit from a clearer design-precision rationale. Since the paper relies on mixed models, interaction testing, and subgroup interpretation, readers need a concise argument for why 100 specifications were enough for the inferences emphasized, especially for RQ6 and the dependency-origin decomposition.
- Language effects should be deemphasized further.
The manuscript appropriately says “The language terms are therefore covariates only, and no comparison between languages is claimed” . That is the correct interpretation. Still, because the results section reports seemingly concrete language coefficients, some readers may overinterpret them. I recommend moving more of that caveat adjacent to the first presentation of those coefficients and explicitly labeling them as nuisance adjustments rather than substantive findings.
- The paper’s practical recommendations are useful, but some should be presented as provisional.
The conclusions recommend that “security should be requested explicitly,” “the libraries to be used should be named,” and “whatever the tool installs should be audited” . These are sensible and well aligned with the reported evidence. However, the recommendation to name specific libraries is not yet directly tested in the experiment; it is inferred from post-hoc observational evidence and framed as a prediction for future work . I would retain the recommendation but label it as a strongly motivated hypothesis rather than a demonstrated best practice from this experiment.
Potential Minor Revisions
- Formatting and journal-style placeholders.
The header still shows “Vol. XX, No. X, 20XX,” indicating unresolved production placeholders on multiple pages . These should be replaced before publication.
- Inconsistent section labeling at the end.
The manuscript presents “5.1 Threats to Validity” and then a standalone “Conclusions” heading rather than an evidently numbered terminal section . If this matches journal style it may be acceptable, but the transition looks visually abrupt in the extracted text and should be checked in the final typeset version.
- Clarify page numbering for citations in revision workflow.
The manuscript PDF appears to use printed page markers like “–1–”, “–2–” etc. across the body . For external reviewers and editors, ensure stable conventional page numbering in the final version so exact claims can be cited unambiguously.
- Some sentences are overly long and could be split for readability.
For example, the sentence beginning “Three properties of the intervention are unknown and consequential...” in the introduction is conceptually dense and extends across multiple clauses . Likewise, several discussion paragraphs contain multi-claim sentences that could be shortened without loss of rigor . The prose is generally strong, but a few strategic splits would improve accessibility.
- “Portable improvement” should be qualified.
In the abstract, “portable improvement” may overstate the generality of the result given the dependence on two tools, three ecosystems, and one fixed prompt block . Consider “promising low-cost intervention under the tested conditions.”
- Tighten phrasing around “statistically indistinguishable.”
The conclusions state that the two tools were “otherwise statistically indistinguishable” . That wording risks implying equivalence, which non-significance does not establish. Consider replacing it with “did not differ detectably in overall finding volume under the specified models.”
- Terminology around “security posture” and “risk” could be more disciplined.
The introduction and discussion sometimes move quickly between scanner findings, security posture, and risk . Since the endpoint is a reported-finding count, use “reported findings” or “scanner-detected weaknesses” when possible, reserving “risk” for explicitly qualified interpretation.
- The discussion of multiplicity deserves more visibility.
The paper notes that “Pairwise contrasts were not adjusted for multiplicity” and that some intervals should be read as descriptive . This is important and should perhaps be signposted earlier near the first subgroup-heavy interpretation, especially around tier interaction and within-tool severity contrasts.
- Clarify the relationship between the preliminary paper and the present paper.
The manuscript says, “No text, table, figure, or result from that paper is reused here” while also stating the present study is “the announced scaling of that pipeline” . This is mostly clear, but one sentence explicitly distinguishing conceptual continuity from result reuse would help avoid confusion.
- Reference and copyediting checks.
I did not detect obvious fabricated citations from the extracted text, and the reference list appears field-appropriate and coherent for software engineering and AI-code-security research . Still, because the topic is fast-moving and includes arXiv/preprint literature, I recommend a final reference audit for publication status, venue details, and consistency of capitalization and page ranges.
AI content analysis for this post-2021 work
Estimated percentage of AI-generated content: Low to moderate likelihood of AI-assisted drafting at the sentence level, but low likelihood of unverified AI-generated scientific content in the substantive claims.
Rationale: The acknowledgement explicitly discloses that “AI-assisted tooling was used during preparation of the manuscript for language editing and the scripted analysis of the frozen artifacts” and that the author “reviewed and verified all AI-assisted outputs” . That disclosure materially reduces concern. The prose itself is unusually polished, highly uniform in cadence, and repeatedly uses balanced contrastive structures, which is consistent with either very careful human editing or AI-assisted language refinement. However, the manuscript also shows domain-specific caution, explicit validity threats, nuanced interpretation of exposure-adjusted dependency advisories, and self-limiting caveats that are less characteristic of unreviewed generative output. On the evidence available, I would estimate roughly 20–35% AI assistance at the wording/editing layer, but not infer that the scientific argument or empirical content is machine-fabricated. This estimate is necessarily impressionistic and should not be treated as a finding.
Highlighted AI-detected sections:
- The acknowledgement directly states AI-assisted language editing was used .
- Highly regular, rhetorically balanced passages appear in the introduction and discussion, for example the sentence beginning “Three properties of the intervention are unknown and consequential...” and the practical recommendations paragraph beginning “The results carry a practical message with two parts” .
- These passages are polished but not obviously problematic; they read more like edited academic prose than synthetic filler.
Assessed epistemic impact: Low. Because the author discloses AI assistance and the manuscript’s central empirical logic is internally coherent, the likely AI contribution appears stylistic/editorial rather than evidentiary. I do not see strong signs of paper-mill production, fabricated jargon, incoherent citation behavior, or scientific nonsense. On the contrary, the manuscript repeatedly acknowledges its own limitations in ways that are substantively appropriate . The main epistemic risk is therefore not AI authorship per se, but overstatement of causal interpretation.
Anti-fraud / paper-mill assessment
Warning status: No strong fraud or paper-mill warning triggered.
Reasoning: The manuscript fits a coherent empirical software-engineering paradigm: controlled factorial design, explicit RQs, mixed-model analysis, threats-to-validity section, disclosed data repository, and bounded claims . I do not see hallmark paper-mill traits such as incoherent topic mixing, impossible methodology, irrelevant citations, empty novelty claims unsupported by methods, or meaningless statistical language. The main caution is methodological overreach in causal phrasing, not fabrication.
Recommendations
- Reframe the manuscript’s core claim from “the effect of security-focused prompts” to “the effect of the tested OWASP-aligned prompt augmentation under a fixed scanning pipeline.”
- Revise the abstract, title if possible, and conclusion language to reflect that the outcome is reported findings, not validated vulnerabilities.
- Surface the first-party versus dependency-origin decomposition much earlier, ideally in the abstract or at the start of Results, so readers do not misread the high-severity result.
- Mark the library-specific recommendation as hypothesis-generating unless directly tested in a new arm.
- Strengthen the design-justification paragraph around sample size and precision.
- Further downweight language-level comparisons and any wording that could be mistaken for equivalence claims between tools.
- If revision is feasible before submission, the most valuable addition would be exactly what the manuscript itself proposes: a matched-length placebo block or a no-new-dependencies security variant, because this would substantially improve causal identification .
Overall recommendation
Promising manuscript with solid relevance and a meaningful empirical contribution, but it requires major revision before I would consider it methodologically secure enough in its current interpretive form. The paper’s strongest contribution is not merely that the security block lowers findings, but that it reveals a trade-off between application hardening and dependency-surface expansion in agent-generated software. That insight is valuable and publishable if the causal language is tightened and the limitations are moved from the margins into the center of the interpretation.
Reviewer3 (AI review)
AI Review (reviewer3.com)
Overview
Reduction of Application Findings
Contribution
This study demonstrates that appending a standardized OWASP-aligned security block to prompts for agentic AI coding tools reduces overall reported security findings by 35% across complete generated web applications.
Dependency Expansion Trade-Off
Contribution
The author reveals that security-focused prompting approximately doubles an application's declared dependency surface, shifting high-severity vulnerability exposure from first-party source code to third-party library build chains.
Comments (14)
1. Unexplained difference between 344 and 326 surplus npm advisories — Editorial
variant B introduces. Of the 344 high - severity npm advisories in the 87 manifest - bearing variant - B applications, 124 also occur in the paired variant - A application and the remaining 220 trace exclusively to packages absent from the var iant - A manifest. Three anchor packages carry all of them, whose native build chains ( tar , Acta Polytechnica Hungarica Vol. XX, No. X, 20XX – 13 – node - gyp , node - pre - gyp , make - fetch - happen , cacache ) carry the published advisories: the session store connect - sqlite3 (added in 34 specification × tool pairs, 170 adv isories), the password - hashing library bcrypt
In Section 4.4, the text states: 'Of the 344 high-severity npm advisories in the 87 manifest-bearing variant-B applications, 124 also occur in the paired variant-A application and the remaining 220 trace exclusively to packages absent from the variant-A manifest. Three anchor packages carry all of them, whose native build chains ... carry the published advisories: the session store connect-sqlite3 (added in 34 specification × tool pairs, 170 advisories), the password-hashing library bcrypt (58 pairs, 116 advisories), and the database driver sqlite3 (8 pairs, 40 advisories).' However, the sum of the advisories listed for the three anchor packages is 170 + 116 + 40 = 326, which matches neither the 220 surplus advisories exclusive to variant-B manifests nor the 344 total high-severity npm advisories in variant B. The text claims 'Three anchor packages carry all of them', leaving the relationship between 326, 220, and 344 numerically unreconciled.
2. Passing vs. reachable application count mismatch (386 vs. 392) — Editorial
129 to 168 seconds for codex. Each application was then built and started in Docker to verify that it runs; 386 of the 400 passed, and the 14 genuine generation defects were retained unmodified as data points.
Section 3.2 states that when each application was built and started in Docker to verify that it runs, '386 of the 400 passed, and the 14 genuine generation defects were retained unmodified as data points.' However, Section 3.3 immediately follows by stating that dynamic analysis (which runs against each application executing in the container harness) 'covered the 392 reachable over HTTP, eight applications having failed to boot, five under variant A and three under variant B.' It is inconsistent for 14 applications to fail the Docker build-and-run verification in Section 3.2 while only 8 applications fail to boot and 392 are reachable over HTTP in the container harness in Section 3.3.
3. Omitted tool scanner in source-code HIGH findings attribution — Editorial
Section 4.3 attributes all high-severity findings in the applications' own source code exclusively to two scanners: 'High-severity findings in the applications' own source code (bandit, semgrep) fell from 103 under variant A to 54 under variant B, while high-severity dependency advisories rose from 198 to 344.' These two categories sum to the total 699 HIGH findings (103 + 54 + 198 + 344 = 699). However, Section 3.3 states that static analysis for first-party source code also used 'ESLint with the security plugin' (for Node.js) and 'progpilot' (for PHP). Either ESLint and progpilot produced zero HIGH findings (which should be stated or clarified) or they were omitted from the parenthetical list of source-code scanners in Section 4.3.
4. Authentication and session package list is not defined — Minor
nnecessary: of the 46 Node.js specifications, 20 describe
You report the proportion of userless Node.js applications declaring an authentication or session package, but you never list which specific npm packages were classified as belonging to this category, making the operational boundary of unnecessary scope growth impossible to verify.
5. First-party source code size growth is not measured — Critical
High-severity findings in the applications' own source code (bandit, semgrep) fell from 103 under variant A to 54 under variant B, while high-severity dependency advisories rose from 198 to 344.
While you adjust dependency advisories for the two-fold expansion in declared manifests, you do not report or adjust for lines of code (LOC) or file counts in the first-party source code. Because Variant B takes significantly longer to generate and adds features like authentication machinery, first-party source code almost certainly expanded as well, meaning the unadjusted drop from 103 to 54 high-severity source findings understates the actual density reduction per line of generated code.
6. Exposure-adjusted advisory rates lack uncertainty intervals or paired tests — Major
High-severity npm advisories per application rose 1.79-fold under variant B while the declared dependency surface rose 2.20-fold, so the advisory rate per declared direct dependency did not increase: in aggregate it was 0.487 under variant A against 0.398 under variant B, and 0.366 against 0.371 when computed per application and then averaged.
In Table 2 and Section 4.4, the comparison of exposure-adjusted high-severity advisory rates between Variant A and Variant B relies purely on descriptive ratios of means (0.82 in aggregate, 1.01 per-application mean) without confidence intervals or paired statistical tests across the 86 specification × tool pairs.
7. Total finding volume conflates code hygiene with dependency count — Major
none was CRITICAL. Two OWASP Top 10 categories account for the majority of findings, Security Misconfiguration (A05, 2,503 ) and Vulnerable and Outdated Components (A06, 1,471).
Pooling static source analysis, dynamic scans, and software-composition analysis into a single count per application obscures the effect of the prompt on application hygiene. Because Variant B expands the dependency surface and increases A06 dependency advisories, the composite 35% reduction understates the prompt's true effect on first-party code and configuration findings; reporting the count model excluding A06 findings would isolate the code-level improvement.
8. ESLint security findings omitted from first-party source split — Major
High-severity findings in the applications' own source code (bandit, semgrep) fell from 103 under variant A to 54 under variant B, while high-severity dependency advisories rose from 198 to 344.
When splitting high-severity findings by origin, you attribute first-party source code findings solely to bandit and semgrep, without clarifying whether ESLint with the security plugin emitted any HIGH findings or if it is excluded from that definition.
9. Finding-level logistic regression ignores application-level clustering — Major
robust by specification). OR: logistic mixed model of high severity ( n = 6,721, random intercept for specification). Reference levels A, claude,
In the finding-level logistic mixed model (n = 6,721), the random intercept is specified only at the specification level (100 clusters), which treats multiple findings from the same generated application as conditionally independent and fails to account for application-level clustering (400 clusters), especially when one package pulls multiple identical advisories into a single application.
10. Language distribution across complexity tiers is not specified — Major
any generation began. Specifications span four complexity tiers, from single - purpose utilities (T1, n = 25) through small CRUD ser vices (T2, n = 30) and multi - entity applications (T3, n = 30) to platform - style systems with roles and workflows (T4, n = 15), and three language ecosystems: Node.js with Express ( n = 46), Python with Flask or FastAPI ( n = 39), and plain PHP (
Because PHP lacks a dependency scanner and yields about one-third fewer static findings than Node.js or Python, any imbalance in how Node.js, Python, and PHP specifications are distributed across complexity tiers T1–T4 could confound the variant × tier interaction (RQ6), as dependency surface growth under Variant B is invisible in PHP.
11. Apparent reporting error in cluster-robust odds ratio for Claude — Major
the fixed-effects logistic fit with cluster-robust standard errors gives an almost identical point estimate on a considerably wider interval (OR 1.72, 95% CI 1.23–2.40), and where the two error models disagree the wider interval is relied on here. Read consistently from that fit, the shift holds within both tools (claude OR 1.72, 95% CI 1.23–2.40; codex OR 2.38, 95% CI 1.85–3.07)
In Section 4.3, the cluster-robust odds ratio and 95% confidence interval reported for the claude subgroup (OR 1.72, 95% CI 1.23–2.40) are identical to the main-effect estimate for Variant B from the previous sentence, despite Table 1 showing a significant Variant B × codex interaction (OR 1.40) and the raw HIGH counts for claude rising only modestly from 154 to 168.
12. Asymmetric generation retries upon build failure are unreported — Major
only command log. Generated code was treated as immutable: no bug fix, hardening, or reformatting was applied after generation, and build failures were addressed only by re - running generation into a clean dir ectory. The Claude Code CLI advanced through ten releases over
You note that build failures were handled by re-running generation into a clean directory until 386 of 400 applications passed, while 14 genuine generation defects were retained. However, you do not report how many regeneration attempts occurred per tool and variant, nor the criteria distinguishing a retry-eligible build failure from a retained generation defect, which could mask differences in functional reliability caused by the security block.
13. Anchor advisory counts sum to 326 rather than 220 — Minor
variant B introduces. Of the 344 high - severity npm advisories in the 87 manifest - bearing variant - B applications, 124 also occur in the paired variant - A application and the remaining 220 trace exclusively to packages absent from the var iant - A manifest. Three anchor packages carry all of them, whose native build chains ( tar , Acta Polytechnica Hungarica Vol. XX, No. X, 20XX – 13 – node - gyp , node - pre - gyp , make - fetch - happen , cacache ) carry the published advisories: the session store connect - sqlite3 (added in 34 specification × tool pairs, 170 adv isories), the password - hashing library bcrypt
You state that the three anchor packages carry all 220 Variant-B-only advisories, but the parenthetical advisory counts reported for connect-sqlite3 (170), bcrypt (116), and sqlite3 (40) sum to 326; you should clarify whether the parenthetical figures include the 124 advisories shared with Variant A or reflect overlapping transitive paths.
14. Unadjusted Python dependency advisory counts by variant are omitted — Major
DEPENDENCY is not a severity band but an artifact of scanner output, comprising exactly the 676 pip - audit advisories, all of them Python and all of them A06, because pip - audit reported known vulnerable packages without a severity field; rather than impute one, the label records its absence.
Because all 676 pip-audit advisories lack a severity field and are excluded from HIGH counts, the origin split of dependency advisories only reflects Node.js. Reporting how the 676 Python dependency advisories split between Variant A and Variant B would clarify whether dependency advisory inflation occurs in Python at a similar rate to Node.js.
XSci (AI review)
Summary
The manuscript asks what a fixed, OWASP-aligned block of security requirements changes when appended to the prompt of an agentic coding tool that builds a complete web application. One hundred frozen specifications were each realized four times — two tools (Claude Code, Codex CLI) crossed with two prompts sharing a byte-identical functional core — and the 400 applications were scanned by one pipeline, yielding 6,721 triaged findings analyzed with count and logistic mixed models. The block is associated with 35% fewer findings per application (IRR 0.65, 95% CI 0.60–0.71), with no detectable difference between the tools, and it roughly doubles the declared dependency surface, so variant-B applications carry more high-severity dependency advisories while high-severity findings in first-party source fall from 103 to 54.
Contribution and Significance
The contribution that matters here is not the effect size but the artifact-level side effect. That a security instruction lowers reported weakness counts is already reported by He et al. [9] and Tony et al. [21]; what no prior study has measured is that a requirements block phrased as mechanisms is read by agents as a list of features to build. The evidence in Section 4.4 is clean: among the 20 Node.js specifications whose functional core mentions no users, accounts, roles or sessions, 36 of 38 comparable variant-B applications (95%) declared an authentication or session package against 17 (45%) under variant A, and the 344 high-severity npm advisories trace to the native build chains of three packages the block indirectly induces. This is measured at the right level — the manifest the agent writes, not the function it emits — and it is actionable for anyone writing a prompt template.
The positioning against the closest work is accurate: Deng et al. [5] vary prompt framing for one agentic tool on a reproduction task, BaxBench [22] is single-shot and single-file, and SusVibes [25] varies a vulnerability hint against existing repositories. Crossing the instruction with two independently developed tools, the specification rather than the model being the experimental unit, is a genuine design advance; the reduction itself, however, deserves less weight than the manuscript gives it (Major Concern 1).
Strengths
- The design is the strongest in this niche: a fully crossed 2 × 2 × 100 experiment with the specification as the unit, a byte-identical functional core, and a catalog frozen under a SHA-256 lock file before generation (Sections 3.1–3.2), which precludes post hoc tuning and yields 200 within-specification pairs.
- The dependency-diff and anchor-tracing analysis (Section 4.4) is the most original part of the paper: 220 of the 344 high-severity advisories trace exclusively to packages absent from the paired variant-A manifest, and all of them to three build-heavy anchors, which connects the result to the install-script weak-link signal [24].
- The reporting is candid where candour costs something: Section 3.3 states the instrument asymmetries before the analyses they would bias (no software-composition analysis for PHP; static findings per application 7.3 / 7.0 / 0.6), Section 4.2 then refuses to interpret the language coefficients and calls RQ6 "weak evidence rather than a demonstration", and Section 4.3 relies on the wider of two intervals.
Recommendation
Major Revision for the leading journals of the field. The scope-growth result and the design are at the level these venues publish. What stands in the way is that the headline reduction is never decomposed, so it cannot be distinguished from the instrument registering compliance with items the prompt enumerates; that the analysis carrying the third contribution (Section 4.5) is entailed by the preceding one; and that the exposure-adjusted null depends on an unexamined denominator. All three are re-analyses over artifacts the author already holds — substantial work, but within the manuscript's own approach.
Major Concerns
-
The reduction is never decomposed, and the treatment names the checks the instrument reports (Figure 1; Sections 3.3, 4.1, 5, 5.1). The block instructs the agent to "Set appropriate security headers", to "Configure secure session cookies (HttpOnly, Secure, SameSite)" and not to "leak stack traces or internal errors to clients"; the passive ZAP baseline scan, whose default rule set reports very largely those same properties, contributes 3,463 of the 6,721 findings (51.5%). The 35% reduction may therefore consist in substantial part of the instrument recording that the agent did what the prompt listed — weaker than the abstract's "inexpensive and portable improvement". The Discussion asserts this mechanism ("Most of the reduction occurred in the classes a passive scanner detects, namely missing security headers, cookie attributes, and verbose defaults"), but no result supports it: detection method and OWASP category are tabulated for the pooled population only, never crossed with variant, and Section 5.1 gives the issue one sentence.
Cross variant with detection method, category and rule identifier over the frozen reports, and report the IRR separately for findings whose rule matches an item the block names and for those it does not. If the reduction survives outside the enumerated items the claim becomes much stronger; if not, it should be restated as a claim about configuration hygiene.
-
The separation in Section 4.5 is entailed by Section 4.4 and cannot support the third contribution (Sections 4.4–4.5, Conclusions). Section 4.4 establishes that three anchor packages carry all 344 high-severity npm advisories under variant B, so an application declaring none of them has zero by construction, and the Section 4.5 figures confirm that identity rather than test it (67 chain-heavy applications × 5.1 ≈ 344). The 12-versus-67 contrast is a restatement of the anchor analysis, yet it is presented as an independent finding ("The separation is complete") and carries both the claim that the exposure is attributable to library selection and the Conclusions' "prediction sharp enough to be refuted by a single further run". That counterfactual does not follow from a partition defined by the packages that carry the exposure: the chain-free applications show that the three anchors are absent, not that bcryptjs, argon2 and better-sqlite3 are advisory-free. Fold Section 4.5 into Section 4.4 as a descriptive note, or support the counterfactual by auditing the resolved trees of the chain-free equivalents.
-
The exposure adjustment rests on a denominator that is not where the advisories live (Section 4.4, Table 2, Abstract). The advisories arise in transitive native build chains (tar, node-gyp, cacache), but the rate is normalized by declared direct dependencies, so every additional advisory-free direct dependency mechanically deflates it; the two versions of the ratio already disagree in direction (0.82 in aggregate, 1.01 as a per-application mean), a sign that the normalization is doing the work. Report an exposure measure matching the mechanism — resolved transitive packages, or packages with install scripts — and show whether the null survives it. The abstract's "the advisory rate did not rise (flat per application, 18% lower in aggregate)" reads as a statement about advisories per application, which Table 2 shows rose 1.79-fold (2.19 to 3.93); state that increase there plainly.
Minor Comments
- Section 3.2 reports that "386 of the 400 passed" the build-and-start check while Section 3.3 analyses "the 392 reachable over HTTP, eight applications having failed to boot"; these cannot both be right.
- Functional correctness is never assessed — applications are only verified to build and start — so, unlike in BaxBench [22], the comparison is not conditioned on utility.
- Because the model contains a variant × tool term, the "Variant B" rows of Table 1 (IRR 0.65, OR 1.71) are simple effects at the reference tool — Section 4.1 quotes IRR 0.65 as the claude-specific estimate — so the abstract should report marginal effects.
- For the 832 of 7,553 findings removed in triage (Section 3.4), state whether it was blind to variant, give the per-variant counts, and refit the model on the full 7,553.
- Section 4.2 calls the three interaction coefficients "jointly distinguishable from zero" without reporting the test statistic, degrees of freedom or p-value.
- The PHP analyzer is written "propgilot" in both occurrences in Section 3.3; the tool appears to be progpilot (designsecurity/progpilot), and should be cited with a version.
- Scanner versions and the date the npm and PyPI advisory databases were queried are not given, although advisory counts depend on both.
- Section 3.4 says findings from multiple scanners were merged and severity copied from the reporting scanner, but not which label wins on a merge.
- The Conclusions call the tools "otherwise statistically indistinguishable", which ignores the significant variant × tool term in the severity model (OR 1.40, 95% CI 1.21–1.62).
- Data Availability omits the raw scanner reports, the per-finding dataset, the triage rules and the analysis scripts, which Tables 1 and 2 cannot be reproduced without.
- Each cell holds a single generation, so run-to-run stochasticity is unestimated; a repeated-generation subsample would bound it (see S. Ouyang, J. M. Zhang, M. Harman, M. Wang, "An Empirical Study of the Non-Determinism of ChatGPT in Code Generation", ACM TOSEM, 34(2), 2025).
- Only wall-clock time is reported (median 180→350 s for claude, 129→168 s for codex); token and monetary cost per application would substantiate the claim that the intervention is cheap.