AI-generated images, audio or video
Partialmedium severity · reads .ts .tsx .js .jsx .mjs .cjs .pyBeta
Marked Partial: you may already add marking after this call. Confirm it does. When Lintsure finds this, it marks it as Partial: it may be fine, depending on context only you can confirm.
What it looks like
A line Lintsure flags in its own test app:
// src/ai.ts
const img = await openai.images.generate({ prompt });How to fix it
Mark generated media as AI-made in a machine-readable way (for example C2PA metadata) and label deepfakes for viewers.
Through a coding agent, Lintsure suggests the change and waits. Nothing is edited until you approve it.
Controls it relates to
- EU AI ActArt. 50(2)Marking AI-generated content
What the framework asks
EU AI Act Art. 50(2): Mark AI-made content
AI-generated images, audio, video and text should carry a machine-readable mark that they're AI-made.
Evidence a reviewer may ask for: How output is marked, for example C2PA metadata or watermarks.
EU AI Act Art. 50(4): Label deepfakes
If you publish realistic fake media of people, places or events, say that it's AI-made.
Evidence a reviewer may ask for: The label shown to viewers.
Summaries are our own reading of the public texts, not the official wording.
Read more: The EU AI Act for developers
Check your code for this
Runs on your machine. Your code is never uploaded.
npx lintsure scanThis rule is in Beta: its mapping to framework controls is waiting for review by a qualified compliance professional. Lintsure is a readiness tool, not an audit or legal advice. A finding, or the lack of one, doesn't make you compliant. Disclaimer