Certia
My bachelor's thesis: a marketplace for AI agents and automations that certifies every listing with an automated security audit.
- Role
- Author (bachelor's thesis, University of Málaga)
- Period
- May – Jun 2026
- Stack
- Next.js, PostgreSQL, Docker, Trivy
What I built
- A marketplace where developers publish AI agents and automations, and companies browse and buy them.
- Two asset types: container images and reference architectures (n8n or Zapier workflows as JSON).
- An automated security audit on publish: every asset ends up certified or rejected, and buyers can see the audit log and the approved permissions.
- Adaptation requests from companies to developers, and a dashboard to publish, version and manage assets.
- Visitor, developer, company and admin roles.
Technical decisions
- One audit engine, two strategies
- Every descriptor is identified by a SHA-256 hash and the engine routes by asset type: workflows go to a static analyzer and container images to a Trivy scan.
- A sandbox with no way out
- The workflow analyzer runs in a Docker container with no network, 128 MB of memory, a 5-second limit, read-only input, at most 1 MB of output and an unprivileged user. It looks for filesystem and network access, eval and child_process.
- A typed contract between container and server
- The sandbox output arrives between markers and is validated against the shape of the approved permissions before it's accepted.
- Zero critical or high vulnerabilities
- Trivy scans images at CRITICAL and HIGH severity, and an asset is only certified when there are no findings.
- Infrastructure errors kept apart from rejections
- If the sandbox or the scanner fails, it's recorded as an infrastructure error rather than a security rejection, so developers aren't penalised for a platform failure.
- Plain SQL and custom sessions
- PostgreSQL on Neon with plain SQL instead of an ORM, transactions and savepoints. Sessions use an HMAC-SHA256 signed cookie and passwords are stored with scrypt.