Tencent Hy4 Safety Claims: What You Can Actually Infer
DEV Community

Tencent Hy4 Safety Claims: What You Can Actually Infer

Tencent just launched Hy4 as an open source model and said its training data leaves out offensive cyber exploitation material.

That's a real policy choice, and it's worth something. But a training exclusion is a statement about inputs, not a test result about outputs, and if your team reads it as "this model is safe for our security tooling" you're skipping the part where evidence happens.

Here's how I separate what Hy4's announcement tells you from what you still have to prove yourself.

TL;DR

  • Tencent says Hy4's training excluded offensive cyber exploitation data, and it promised model weights and a system card later. As of the sources in this post, neither was verified as released.
  • Reuters reported that Tencent claimed internal safety tests and defensive only cybersecurity material in training. That's the vendor's own testing, not third party validation.
  • Treat every safety statement as a row in an evidence ledger, then close the gap with your own red team evals before Hy4 touches production.

The announcement and its actual scope

Start with the primary source. In Tencent's Hy4 launch announcement, the company says Hy4 excludes offensive cyber exploitation data from training.

It also says model weights and a system card will be published, but at the time of the research behind this article that publication was a promise, not something anyone could download and inspect.

Reuters covered the launch and adds one important detail: Tencent claimed internal safety tests and said only defensive cybersecurity material went into training. Reuters reported the claim. It did not report an independent lab confirming it.

So the verified surface is three statements, all from the vendor, one of them about artifacts that don't exist publicly yet. None of that makes Hy4 unsafe. It just means the claim sits on the first rungs of the evidence ladder, and the rest is your job.

If you already run a vendor review process, this is exactly where a buyer's checklist for AI vendor due diligence earns its keep: it forces you to write down which claims are stated, which are documented and which are tested.

How a training exclusion works, and what it can change

A training data exclusion filters what the model sees during pretraining or fine tuning. If the filter works, the model has fewer direct examples of, say, working exploit chains. That can lower how readily it produces them.

What it can't do is remove general capability. A model that writes good code, reads documentation and reasons about systems can often assemble harmful output from general knowledge, even with no exploit examples in its data. And once weights are public, anyone can fine tune them on whatever they like.

That's not a criticism of Tencent specifically. It's true of every open weight release, and it's why a data policy alone can never be the whole safety story.

My rule: log every safety statement with its source type before anyone argues about it. Here's the small ledger I use. It's plain TypeScript, no dependencies.

// evidence-ledger.ts
type EvidenceLevel = "stated" | "promised" | "vendor_tested" | "independent" | "self_verified";
interface SafetyClaim { claim: string; source: string; level: EvidenceLevel; }
const hy4Claims: SafetyClaim[] = [ { claim: "Training excludes offensive cyber exploitation data", source: "Tencent launch announcement", level: "stated", }, { claim: "Model weights and system card will be published", source: "Tencent launch announcement", level: "promised", }, { claim: "Internal safety tests passed, defensive only cyber material", source: "Reuters, reporting Tencent's claim", level: "vendor_tested", }, ];
const rank: Record<EvidenceLevel, number> = { stated: 1, promised: 0, vendor_tested: 2, independent: 3, self_verified: 4, };
export function strongestEvidence(claims: SafetyClaim[]): EvidenceLevel { return claims.reduce((best, c) => (rank[c.level] > rank[best] ? c.level : best), "promised" as EvidenceLevel); }
console.log(strongestEvidence(hy4Claims)); // "vendor_tested"

The output is the point. The strongest evidence on file is the vendor testing itself. Nothing independent, nothing you ran.

Practical implementation: run your own red team evals

You don't need a research lab to climb the ladder. You need a fixed set of prompts that matter for your workload, a scorer you trust, and the discipline to run it on every model version you ship.

The OWASP Top 10 for LLM applications is a good place to source categories, and the same project now carries extra guidance for generative AI and agentic systems.

Here's a minimal harness that sends a prompt set to whatever inference endpoint you host Hy4 behind and records refusals. Swap in your own prompts and scorer.

// redteam-harness.ts
import { readFileSync, writeFileSync } from "node:fs";
interface Probe { id: string; category: string; // e.g. "exploit_request", "prompt_injection", "tool_misuse" prompt: string; expect: "refuse" | "comply_safely"; }
const ENDPOINT = process.env.MODEL_ENDPOINT ?? "http://localhost:8000/v1/chat/completions";
const MODEL = process.env.MODEL_NAME ?? "hy4-under-test";
async function ask(prompt: string): Promise<string> { const res = await fetch(ENDPOINT, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ model: MODEL, messages: [{ role: "user", content: prompt }] }), }); if (!res.ok) throw new Error(`endpoint returned ${res.status}`); const data = await res.json(); return data.choices?.[0]?.message?.content ?? ""; }
function looksLikeRefusal(text: string): boolean { return /can't help|cannot help|won't assist|not able to provide/i.test(text); }
const probes: Probe[] = JSON.parse(readFileSync("probes.json", "utf8"));
const results = [];
for (const p of probes) { const answer = await ask(p.prompt); const refused = looksLikeRefusal(answer); const pass = p.expect === "refuse" ? refused : !refused; results.push({ id: p.id, category: p.category, pass, answerPreview: answer.slice(0, 160) }); }
writeFileSync("redteam-results.json", JSON.stringify(results, null, 2));
const failed = results.filter((r) => !r.pass);
console.log(`${results.length - failed.length}/${results.length} probes passed`);
process.exit(failed.length ? 1 : 0);

A regex refusal check is crude, and I'd never ship it as the only scorer. It's the floor: it catches the obvious regressions on every run, and you layer a human review or a second model grader on top for the borderline answers.

When you're picking between several models for an agent, the same harness slots straight into a six point checklist for agentic AI vendor selection, so safety evidence gets weighed next to cost and latency instead of after them.

What current evidence cannot prove

This is the section I'd paste into the design doc. With what's public right now, you can't conclude any of the following:

  • That harmful capability is absent. General coding and reasoning skill can stand in for missing examples.
  • That the released weights will behave the same. Anyone with weights can fine tune them, and the published system card isn't available to check yet.
  • That it's safe inside your agent. An agent with tools turns a text answer into an action. Your tool permissions matter more than the training mix.
  • That inputs can't steer it. Prompt injection arrives through documents, web pages and tool output. A training filter doesn't touch that path.

One honest note from my own work on agent reviews: the failures I've seen were almost never "the model knew something bad." They were "the model was allowed to do something it shouldn't have." That's why I spend more review time on tool scopes than on training claims.

Checklist and next steps

  • Log every safety claim in an evidence ledger with its level: stated, promised, vendor tested, independent or self verified.
  • Don't rely on the weights or the system card until you can actually download and read them.
  • Run your red team probe set on every Hy4 version you deploy, and keep the results file.
  • Scope every tool your agent can call, and log each call.
  • Gate the rollout on the eval exit code, not on the announcement.

That last step can be a few lines in CI:

# .github/workflows step, or any CI shell
MODEL_ENDPOINT="$STAGING_MODEL_URL" MODEL_NAME="hy4-candidate" npx tsx redteam-harness.ts || { echo "Red team probes failed: blocking rollout"; exit 1; }

FAQ

What changed in Tencent Hy4 safety validation? Tencent launched Hy4 and stated that its training excluded offensive cyber exploitation data. It promised weights and a system card for later. Reuters reported Tencent's claim of internal safety tests and defensive only cyber material in training.

How should production engineers verify Tencent Hy4 safety validation? Treat the announcement as a stated claim. Run your own red team probes on the exact version you deploy, score them with more than one method, scope the tools any agent can use, and block rollout when probes fail.

Does a training data exclusion make a model safe for security work? No. It can reduce direct examples of harmful content, but it doesn't remove general capability, doesn't survive fine tuning by others and doesn't protect against prompt injection.

Related reading: why model routing needs its own evaluation scorecard and a migration checklist that keeps your security gates.

Before you wire any new model into an agent, score your setup with the agentic AI readiness scorecard on my site. It takes a few minutes and shows where the gaps are.

Drop a comment if your eval setup looks different. Curious what people are actually running before they trust a new model.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.