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.
Action plan
- Know your deadlines
- Put the app in scope
- Test before the annual test
- Scan each release
- Login and sessions
- Money and accounts
- Data, secrets and SDKs
- Rules explained
- 10
- Controls mapped
- 9
- Official texts
- 9
Trusted by game and lottery operators, including
- 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.
How Ostorlab helps
AI-agent pentest of the app and its APIs, behind login, on the build you ship.
Agentic Deep ScanEvidence you keep
A working exploit you can replay for each AI-agent finding, and a coverage heatmap
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.
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).
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.
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.
Scan each release
Run Mobile SAST and DAST on each release, and keep the results with the change record for components the release touches.
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.
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.
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.
- Resolución de 6 de octubre de 2014, especificaciones técnicas de juego, trazabilidad y seguridad(opens in a new tab)DGOJ, BOE no. 246 of 10 October 2014, consolidated text last updated 22 June 2024. User authentication and passwords (2.1.11 to 2.1.13), terminals (3.7), sessions (3.8), providers (3.10), critical components (4.1), communications with participants (4.6), third parties (4.7), operations (4.9), access control (4.10), change management (4.13) and the yearly penetration test and vulnerability analysis (4.17) (Spanish text)
- Resolución de 6 de octubre de 2014, modelo y contenido del informe de certificación definitiva y gestión de cambios(opens in a new tab)DGOJ, BOE no. 246 of 10 October 2014, consolidated text last updated 3 November 2022. Functionality and security certification reports by designated entities (6 to 8), ISO 27001 partial validation, substantial changes and quarterly change reports (10), and the list of security requirements (Annex VII) (Spanish text)
- Real Decreto 1613/2011, de 14 de noviembre, requisitos técnicos de las actividades de juego(opens in a new tab)BOE no. 275 of 15 November 2011. Definitions (2), homologation and designated entities (6, 7), critical components and substantial changes (8.4), 10-year validity (10.3), the audit every two years (12), access control (21) and communications with participants (22) (Spanish text)
- Ley 13/2011, de 27 de mayo, de regulación del juego(opens in a new tab)The Gambling Act, BOE no. 127 of 28 May 2011. Homologation of technical systems (article 16) and authentication mechanisms for confidentiality, integrity and participant identity (article 17.2) (Spanish text)
- Orden EHA/2528/2011, de 20 de septiembre(opens in a new tab)Requirements and procedure to designate independent entities certifying gambling software and information systems security, including staff certifications, independence and confidentiality (articles 2 to 5) (Spanish text)
- Resolución de 31 de octubre de 2022(opens in a new tab)DGOJ, BOE no. 264 of 3 November 2022. Adds the procedure for second and later homologations of technical systems, in force 4 November 2022 (Spanish text)
- Resolución de 6 de junio de 2024(opens in a new tab)DGOJ, BOE no. 151 of 22 June 2024. Approves the monitoring data model and amends the specifications, with effect from 22 March 2025 (Spanish text)
- Resolución de 16 de noviembre de 2011, especificaciones técnicas(opens in a new tab)DGOJ, BOE no. 278 of 18 November 2011. The first technical specifications, including penetration testing and vulnerability analysis (4.17), replaced by the 2014 resolution (Spanish text)
- The authorisation of technical gambling systems(opens in a new tab)DGOJ web page. Homologation rests on certification reports from designated software laboratories and IT security audit entities, is valid for ten years, and is maintained through prior authorisation of substantial changes, quarterly change reports and audits every two years
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.
