Artag.dev
VERTICAL 04 // APPSEC & DEVSECOPS

Application Security, API Hardening & DevSecOps Engineering

Defense-in-depth built directly into your application code and database layer: verified cryptography, enforced tenant isolation, and hardened AI agents.

HMAC
Constant-time SHA-256

Cryptographic webhook verification using `timingSafeEqual` and strict anti-replay windows.

RLS
PostgreSQL isolation

Row-Level Security policies that block cross-tenant reads even if an application query has a bug.

OWASP
API + LLM Top 10

Defenses against prompt injection, BOLA/IDOR, excessive agency, and data exfiltration.

Production Evidence

Technical proof: Edge-to-database defense in depth

We ship verifiable security controls in production: raw-body HMAC webhook validation, dynamic CSP headers, rate limiting, PostgreSQL multi-tenant isolation, and hardened Linux container hosts.

  • HMAC-SHA256 cryptographic verification over raw payloads with constant-time comparison (`crypto.timingSafeEqual`) and timestamp anti-replay checks.
  • Strict PostgreSQL multi-tenant isolation via Row-Level Security (RLS) bound to authenticated session contexts.
  • Hardened OAuth2/OIDC and short-lived JWT rotation following least-privilege principles.
  • Linux and container hardening: non-root runtimes, strict CSP/HSTS headers, egress controls, and automated CI security gates.
Reference Architecture
[Client / External Webhook]
        │
        ▼
[WAF / Rate Limit + CSP / HSTS]
        │
        ▼
[HMAC-SHA256 Verification + Anti-Replay Window]
        │
        ▼
[OAuth2/JWT + Least-Privilege AuthZ] ──▶ [PostgreSQL Tenant RLS]
Core Stack
HMAC-SHA256PostgreSQL RLSOAuth2 / OIDC / JWTOWASP API & LLM Top 10Linux HardeningCSP / HSTSDocker SecurityCloudflare

Technical Scope

Application Security & DevSecOps Capabilities

SEC-01

API & B2B Webhook Hardening

Eliminate spoofing, replay attacks, injection vectors, and broken object-level authorization across REST APIs and webhook receivers.

  • →Raw-body HMAC-SHA256 verification middleware with zero-downtime secret rotation
  • →Per-IP, per-tenant, and per-key rate limiting
  • →Strict payload schema validation and HTTP security headers
SEC-02

Multi-Tenant Isolation & PostgreSQL Security

Enforce tenant boundaries inside the database engine rather than relying solely on application-level WHERE clauses.

  • →Audited PostgreSQL Row-Level Security (RLS) policy design
  • →Automated cross-tenant penetration tests in CI
  • →Secrets management, TLS enforcement, and verified backup recovery
SEC-03

AI Agent Hardening (OWASP LLM Top 10)

Protect production LLM workflows against direct/indirect prompt injection, sensitive data leakage, and unsafe tool invocation.

  • →Input sanitization, instruction boundaries, and structured output validation
  • →Least-privilege tool permissions with human approval for sensitive actions
  • →Full audit trails of prompts, tool calls, and responses

Technical Deep Dives

Related Engineering Notes

View all notes

Frequently Asked Questions

Direct Answers

Why isn't filtering by `tenant_id` in backend code enough?

A single missing `WHERE tenant_id = ?` clause in a new endpoint can expose another customer's records. PostgreSQL Row-Level Security enforces tenant isolation at the database engine level regardless of application bugs.

How do you prevent webhook replay attacks?

We verify the HMAC-SHA256 signature over the raw request bytes using `timingSafeEqual`, enforce a signed timestamp window (e.g., 5 minutes), and deduplicate event IDs in Redis.

Can you harden an existing platform ahead of enterprise security reviews?

Yes. We run focused security code reviews, remediate critical API/auth/isolation issues, and add automated regression tests to your CI pipeline.

Other Engineering Verticals

Need to harden your API, multi-tenant SaaS, or production AI agents?

We review your attack surface and implement concrete cryptographic and database-level protections without slowing down product velocity.

info@artagdev.com.co+57 320 571 1428Artag Dev · Pereira, Risaralda, Colombia