Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessAnthropic took down thousands of Github repos trying to yank its leaked source code — a move the company says was an accidentTechCrunch1 Artificial Intelligence (AI) Software Stock to Buy Hand Over Fist Before It Soars 62%, According to Dan Ives - The Motley FoolGoogle News: AIGroup Pushing Age Verification Requirements for AI Turns Out to Be Sneakily Backed by OpenAIGizmodoGroup Pushing Age Verification Requirements for AI Turns Out to Be Sneakily Backed by OpenAI - GizmodoGoogle News: OpenAIInside the race to recreate Claude Code and mine its guts for revelationsBusiness InsiderSolana-based DeFi platform Drift warns users about an "active attack" on its protocol; Arkham data said over $250M had moved from Drift to an interim wallet (Helene Braun/CoinDesk)TechmemeAnthropic Executive Sees Cowork Agent as Bigger Than Claude Code - Bloomberg.comGoogle News: ClaudeAnthropic Executive Sees Cowork Agent as Bigger Than Claude CodeBloomberg TechnologyABAP OOP Design Patterns — Part 2: Factory, Observer, and Decorator Patterns in Real SAP SystemsDEV CommunityWhy Your AI Agent Health Check Is Lying to YouDEV CommunityDeep Dive: Array Internals & Memory LayoutDEV CommunityIllinois Tech computer science researcher honored by IEEE Chicago Section - EurekAlert!Google News: Machine LearningBlack Hat USADark ReadingBlack Hat AsiaAI BusinessAnthropic took down thousands of Github repos trying to yank its leaked source code — a move the company says was an accidentTechCrunch1 Artificial Intelligence (AI) Software Stock to Buy Hand Over Fist Before It Soars 62%, According to Dan Ives - The Motley FoolGoogle News: AIGroup Pushing Age Verification Requirements for AI Turns Out to Be Sneakily Backed by OpenAIGizmodoGroup Pushing Age Verification Requirements for AI Turns Out to Be Sneakily Backed by OpenAI - GizmodoGoogle News: OpenAIInside the race to recreate Claude Code and mine its guts for revelationsBusiness InsiderSolana-based DeFi platform Drift warns users about an "active attack" on its protocol; Arkham data said over $250M had moved from Drift to an interim wallet (Helene Braun/CoinDesk)TechmemeAnthropic Executive Sees Cowork Agent as Bigger Than Claude Code - Bloomberg.comGoogle News: ClaudeAnthropic Executive Sees Cowork Agent as Bigger Than Claude CodeBloomberg TechnologyABAP OOP Design Patterns — Part 2: Factory, Observer, and Decorator Patterns in Real SAP SystemsDEV CommunityWhy Your AI Agent Health Check Is Lying to YouDEV CommunityDeep Dive: Array Internals & Memory LayoutDEV CommunityIllinois Tech computer science researcher honored by IEEE Chicago Section - EurekAlert!Google News: Machine Learning

I'm 18 and Built an Open-Source Camera That Cryptographically Proves Photos Are Real

DEV Communityby Yuri BorgesApril 1, 20264 min read0 views
Source Quiz

<p>In 2026, generating a photorealistic fake image takes seconds. The C2PA standard (Adobe, Microsoft, Google) solves this with Content Credentials — but only on Samsung S25+ and Pixel 10. The other 3 billion Android phones have nothing.</p> <p>I'm 18, from Brazil, and I built <a href="https://github.com/YuriTheCoder/TrueShot" rel="noopener noreferrer">TrueShot</a> to change that.</p> <h2> What happens when you take a photo </h2> <ol> <li> <strong>14 physical sensors</strong> are sampled at the exact instant of the shutter — accelerometer, gyroscope, magnetometer, barometer, light, proximity, gravity, rotation vectors, and more</li> <li> <strong>SHA-256 hash</strong> is computed on the JPEG bytes up to the EOI marker</li> <li> <strong>ECDSA P-256</strong> signs the manifest via hardware-ba

In 2026, generating a photorealistic fake image takes seconds. The C2PA standard (Adobe, Microsoft, Google) solves this with Content Credentials — but only on Samsung S25+ and Pixel 10. The other 3 billion Android phones have nothing.

I'm 18, from Brazil, and I built TrueShot to change that.

What happens when you take a photo

  • 14 physical sensors are sampled at the exact instant of the shutter — accelerometer, gyroscope, magnetometer, barometer, light, proximity, gravity, rotation vectors, and more

  • SHA-256 hash is computed on the JPEG bytes up to the EOI marker

  • ECDSA P-256 signs the manifest via hardware-backed Android Keystore (StrongBox preferred, TEE fallback)

  • The signed manifest is appended after the JPEG EOI marker — standard image viewers ignore post-EOI data, so the photo displays normally everywhere

Change one pixel → hash breaks. Forge the signature → mathematically impossible without the device's hardware key.

Anyone can verify in a browser at true-shot.vercel.app/verify. The image never leaves your browser.

The part I think is new

Sensor-based screen recapture detection

Every published method for detecting photos-of-screens uses visual analysis — moiré patterns, CNNs, Vision Transformers. The problem: modern OLED screens don't produce moiré. High-PPI displays don't cause aliasing. Visual methods are losing the arms race.

TrueShot does something different: it cross-correlates physical sensor readings to detect anomalies consistent with screen photography. No image analysis at all.

Scenario Score Flagged?

Normal photo (daylight) 20 No

Normal photo (dark room) 30 No

Screen capture (daylight) 70 Yes

Screen capture (dark room) 85 Yes

10 signals: focus distance, light/ISO mismatch, magnetometer magnitude, gyroscope stability, color gain blue-suppression, scene flicker, proximity, ambient darkness, step counter, and compound signals.

The approach works regardless of screen technology — LCD, OLED, MicroLED — because it never looks at the image content.

Cross-device corroboration without communication

Three reporters photograph the same protest on three different phones. Nobody pairs devices. Nobody sets anything up.

Later, an editor drops all three photos on the web verifier. JavaScript extracts the manifests and compares barometric pressure, timestamps, GPS, and ambient conditions.

Consistent sensors from independent devices = same event. Zero servers. Zero cloud. Everything happens in the browser.

Tech stack

  • Kotlin 2.1, Jetpack Compose, CameraX 1.4

  • Hilt for DI, Room for persistence

  • Android Keystore (ECDSA P-256, SHA-256)

  • Vanilla JS + WebCrypto API for the web verifier

  • 14 Gradle modules, ~5,700 lines of Kotlin

  • Zero C++, zero ML models, zero third-party SDKs

What it honestly does NOT do

  • Does NOT detect deepfakes or AI-generated content

  • Does NOT guarantee content truthfulness — a staged scene photographed with TrueShot is authentic as a capture

  • Key attestation chain is included but not validated against Google Root CA yet

  • Screen detection is heuristic, not definitive — it can produce false positives on macro photography in dark rooms

Full threat model: THREAT_MODEL.md

Privacy

  • Zero analytics, zero tracking, zero cloud

  • GPS off by default, opt-in only

  • No Firebase, no Crashlytics, no third-party SDKs

  • Device ID is anonymous (SHA-256 of public key, not IMEI)

  • Web verifier processes everything in-browser

Try it

  • GitHub: github.com/YuriTheCoder/TrueShot

  • Download APK: Latest release

  • Verify a photo: true-shot.vercel.app/verify

MIT licensed. I'm preparing a paper on the sensor correlation approach for IEEE WIFS 2026 (deadline July 15). Feedback welcome, especially if you see attack vectors I'm missing.

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by AI News Hub · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

modeltransformerrelease

Knowledge Map

Knowledge Map
TopicsEntitiesSource
I'm 18 and …modeltransformerreleaseopen-sourcebillionanalysisDEV Communi…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 175 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Open Source AI