---
id: hardening-flags
track: coding
version: 0.1.3
label: blocks
keyword: block
where: write turn-end
sha256: 1c74bc203384181d90568bc1786cc096fd2d130f3be2e72b26d9ea58e9051f65
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/hardening-flags
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# Block Weakened Build Hardening

hardening-flags · version 0.1.3

Blocks — Blocks on an agent's file writes and at turn end. Chock adds friction. It is not a security boundary. 

In a git repo: at commit (Chock refuses the commit, locally and in CI.)



## What it does

Blocks added settings that weaken compiler, linker, Rust or kernel hardening, in CMake, Make, meson, configure.ac, Cargo, build.rs, Go release scripts, Dockerfiles and kernel config: no stack protector, FORTIFY_SOURCE off, non-PIE, execstack, norelro, CET off, kernel KASLR/RWX off. Asks on Rust release overflow-checks off, /dev/mem. Not MSVC, sysctl or container settings; misses environment flags, generated files. Runs: commit, agent write, turn's end, CI. Waiver: 'pragma: allowlist hardening-flag'.

## Its label on each agent

- Claude Code (tested): Blocks — Blocks on an agent's file writes and at turn end. Builder: /coding/builder/#client=claude-code&p=hardening-flags
- Cursor (tested): Blocks — Blocks on an agent's file writes and at turn end. Where its description says it asks, it refuses at both points, because this client cannot prompt at either point. Builder: /coding/builder/#client=cursor&p=hardening-flags
- Codex (tested): Blocks — Blocks on an agent's file writes and at turn end. Where its description says it asks, it refuses at both points, because this client cannot prompt at either point. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run). Builder: /coding/builder/#client=codex&p=hardening-flags
- GitHub Copilot (tested): Blocks — Blocks at turn end only. It does not check a file write when it happens. Where its description says it asks, it refuses at turn end, because this client cannot prompt there. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run). Builder: /coding/builder/#client=copilot&p=hardening-flags
- Devin (tested): Blocks — Blocks at turn end only. It does not check a file write when it happens. Where its description says it asks, it refuses at turn end, because this client cannot prompt there. If the hook errors, the action goes through (vendor docs only, not witnessed). Builder: /coding/builder/#client=devin&p=hardening-flags
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=hardening-flags
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=hardening-flags
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=hardening-flags
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=hardening-flags
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=hardening-flags
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=hardening-flags

## What it misses

This policy does not state what it misses.

## Examples

- Refused: A CMake change adds -fno-stack-protector to target_compile_options.
- Allowed: A change adds -fstack-protector-strong.

## Latest change

0.1.3 · 2026-11-09 — Changelog order only (IR-F46): entries had been added at the top of a list that ran oldest-first, so it rose and fell by version; they now run newest-first throughout. No entry's text or version, and no rule, guard or eval, changed. Patch bump because the manifest is part of the published pack hash.

## Provenance

- Tested by 36 of 36 cases run automatically
- SHA-256: `1c74bc203384181d90568bc1786cc096fd2d130f3be2e72b26d9ea58e9051f65`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/hardening-flags (catalog path `base/hardening-flags`)
- Presets: Code hardening
- JSON: `/api/coding/policies/hardening-flags.json`
- Report a problem: https://chock.sh/report/?policy=hardening-flags&version=0.1.3&page=%2Fcoding%2Fpolicies%2Fhardening-flags%2F
