Gaming regulations

DGOJ rules: pentest your gambling app at least once a year.

The DGOJ's technical specifications require the gaming system of each operator licensed under Spain's Gambling Act to pass a penetration test and a vulnerability analysis at least once a year, covering every public interface that holds, processes or transmits personal, economic or gaming data. A designated entity certifies the system's security before homologation, and the system is audited every two years. In between, Ostorlab scans your app on each release and, when depth matters, pentests it and the APIs behind it.

Free scan of your app from the App Store or Google Play. No login required.

EuropeDirectorate General for the Regulation of Gambling (DGOJ)

Action plan

  1. Know your deadlines
  2. Put the app in scope
  3. Test before the annual test
  4. Scan each release
  5. Login and sessions
  6. Money and accounts
  7. Data, secrets and SDKs
Rules explained
10
Controls mapped
9
Official texts
9

Trusted by game and lottery operators, including

  • Oregon Lottery
  • Scientific Games
  • TPI
  • 4.8/5 on Gartner Peer Insights
  • SOC 2 Type II report (Security)

The Spanish texts behind your gambling app

The Gambling Act requires homologated technical systems, the Royal Decree sets certification and audit, and the DGOJ's resolutions set the security specifications. The dates below come from the texts as published in the Boletín Oficial del Estado (BOE).

27 May 2011

Gambling Act

Ley 13/2011 requires operators to use duly homologated software, equipment, systems and terminals, and technical systems with authentication mechanisms that guarantee the confidentiality and integrity of communications and the identity of participants. It took effect on 29 May 2011 (Spanish text).

The Spanish rules at a glance

Who it applies to
Operators holding general and singular licences under Spain's Gambling Act (Ley 13/2011) for state-wide online gambling; providers' technical systems count as part of the operator's
Key dates
Gambling Act in force since 29 May 2011; technical, traceability and security specifications in force since 11 October 2014, last amended with effect from 22 March 2025
Focus
A yearly penetration test and vulnerability analysis, security certification by a designated entity, an audit every two years, and rules on passwords, sessions and encrypted communications
Main reference
DGOJ Resolution of 6 October 2014 on the technical, traceability and security specifications, and Royal Decree 1613/2011

The DGOJ specifications, applied to your gambling app

For each rule: what the text says, what it means for a betting or casino app, how Ostorlab helps, and what stays with your team, your designated certification entity and the DGOJ.

Source:DGOJ Resolution of 6 October 2014, Annex, section 4.17(opens in a new tab)

Pass a penetration test and vulnerability analysis every year

  • What the text says

    The gaming system must pass a penetration test and a vulnerability analysis at least once a year. The penetration test simulates an attack by a third party, actively looking for weaknesses, technical flaws or vulnerabilities, and includes all public interfaces that hold, process or transmit personal, economic or gaming data. The vulnerability analysis covers all components that do. Purely informative systems, with no betting and no access to the user registration or gaming account, and phone or SMS channels are exempt. Before gaming is first offered, the system must have passed both, and a designated security entity assesses their scope and results during certification.

  • What it means for your app

    Your app logs players in, shows balances and takes deposits, bets and withdrawals, so the APIs it calls are public interfaces in scope. They change with every release, not once a year.

  • How Ostorlab helps

    An AI-agent pentest tests the app and its APIs behind login, on the build you ship, with a working exploit you can replay for each AI-agent finding. Routine scans run on each release in between.

  • What stays with you

    Choosing who runs the annual test and analysis, defining their scope, and the designated entity's assessment of scope and results during certification.

Summary of the Spanish texts published in the BOE, in Spanish, paraphrased in English. Texts checked on 3 December 2026. Only the official Spanish texts are authoritative. This page is not legal advice.

The DGOJ specifications, control by control

The controls the Spanish texts point to, how Ostorlab tests them in your app and its APIs, and the evidence you can keep.

  1. How Ostorlab helps

    AI-agent pentest of the app and its APIs, behind login, on the build you ship.

    Evidence you keep

    A working exploit you can replay for each AI-agent finding, and a coverage heatmap

    Agentic Deep Scan

Ostorlab tests controls in the app and its APIs. The annual penetration test and vulnerability analysis required by section 4.17, functionality and security certification by designated entities, the audit every two years, random number generator and game certification, the internal control system, change authorisation and reporting to the DGOJ stay with your teams, your designated entities and the regulator. Texts checked on 3 December 2026. This page is not legal advice.

DGOJ security controls to test in your app

A practical list for security and compliance teams at operators licensed in Spain, based on the DGOJ specifications and Royal Decree 1613/2011.

  1. Know your deadlines

    Track the date of the last penetration test and vulnerability analysis (12 months), the next audit window (two years plus six months) and your homologation expiry (ten years).

  2. Put the app in scope

    Make sure the app and every API it calls are named among the public interfaces in the scope of the annual penetration test and vulnerability analysis.

  3. Test before the annual test

    Run an AI-agent pentest of the app and its APIs ahead of the annual test and the audit, so known issues are fixed before the report is written.

  4. Scan each release

    Run Mobile SAST and DAST on each release, and keep the results with the change record for components the release touches.

  5. Login and sessions

    Verify on the server the password rules, the five-attempt daily lockout, authentication at each session, the twenty-minute inactivity timeout and that logout really ends the session.

  6. Money and accounts

    Check that bets, deposits, withdrawals and balances are decided and confirmed by the server, and that one account cannot reach another's data.

  7. Data, secrets and SDKs

    Check traffic and on-device storage for personal and payment data, the app package for secrets, and each release's SBOM for vulnerable provider SDKs.

A suggested list, not a template from the DGOJ. Texts checked on 3 December 2026. This is not legal advice.

Sources

The official texts this page is based on, checked on 3 December 2026. All are in Spanish.

FAQ

Frequently asked questions

Straight answers on coverage, setup, and how results reach your team.

Can't find your answer? Book a demo or contact us.

Test your gambling app between DGOJ security checks

Start with a free scan of your app from the store, or book a demo to run logged-in tests of your app and APIs with our team.