Ethical hacking and penetration testing: the rules in Ireland
Ethical hacking means testing a system's defences the way a criminal would, but with the owner's agreement, so that weaknesses are found and fixed first. A penetration test, or pen test, is the usual form. The skills are identical to those of an attacker. The only thing that separates the two is permission. This post explains why that permission must be in writing, what a good authorisation covers, how to run the process as a business owner, and how to read what comes back.
The one rule: no written permission, no test
Good intentions do not change the law. In Ireland the Criminal Justice (Offences Relating to Information Systems) Act 2017 makes it an offence to access an information system without lawful authority, to interfere with a system or with data without lawful authority, and to intercept data transmissions without lawful authority. It also covers using a program, password or code to do any of those things. A helpful stranger who tests your website uninvited is, in law, no different from someone breaking in.
So the rule is simple. Permission must be given by the person who owns or controls the system, and it must be written. A verbal "go ahead" can be denied later, by you or by a hosting company. This applies in both directions: if your website is run by a hosting or software provider, they may need to agree too, because you may not control the servers.
What a good authorisation covers
A signed one-line email is not enough. A solid authorisation covers seven things.
- Who is testing. Named people or a named firm.
- Systems in scope, and out. Listed by name or address.
- Dates and hours. When testing may happen.
- What must not be touched. For example live payment systems or customer records.
- How findings are reported. To whom, in what form and how quickly.
- Who to call if something breaks. A named contact on each side with a number that is answered.
- The owner's signature, with the date.
Scoping is where money is saved. A narrow, clear scope is worth paying for. A vague one invites argument and risk.
A worked example of scope and time
Saorla owns a small online training business. She has 10 systems: website, booking system, email, accounting package, file storage, payroll service, phone system, office network, backup service and a staff laptop pool. For a first test she puts 3 in scope: the website, the booking system and the office network. That is 3 in 10 = 30% of systems.
Out of scope: 10 - 3 = 7 systems, including the payroll service and accounting package, which are run by outside providers and hold sensitive records.
She allows testing for 8 hours a day over 2 days: 8 x 2 = 16 hours. The letter names both days and the hours, and gives her mobile and the tester's. If the booking site slows down, she can stop the test at once.
The four habits of a good tester
- Stay within scope. Never wander into systems that were not listed.
- Do no harm. A test must not break the business, so risky tests are agreed in advance and run out of hours.
- Report promptly and privately. Findings go to the named contact only.
- Protect data seen, and do not keep it. If a tester sees personal data, that is a data protection matter, so the contract should say how it is handled and deleted.
How to organise a first test, step by step
- Decide what you are protecting. Customer records, payment details or your booking system. The answer drives the scope.
- Check who controls each system. If a provider hosts it, read their terms and ask whether testing is allowed and how to request it.
- Choose the tester and ask for their scope document. Ask how they handle data they see and how they report.
- Take a backup first. Confirm you can restore before anyone starts.
- Sign the authorisation and give a copy to everyone who needs it, including whoever answers the phone on the day.
- Brief staff that a test is happening so a flagged alert is not mistaken for a real attack, and so nobody is tricked without warning unless the scope says so.
- Review, fix and re-test the highest risks.
Ask the tester to confirm in writing when testing has finished and that no test accounts or files remain on your systems.
Why hire a tester at all?
There are three reasons. A tester finds weaknesses before a criminal does. They give you evidence to show clients, insurers and your board that security is checked. And they give an outside view, because staff are usually too close to the system to see what is wrong. Plan for the bad day as well: a system may slow down or stop during a test, so everyone should know who to call and when testing stops.
How to read the report
A good report lists findings by risk, highest first. Each finding has a description, a recommended fix, an owner and a date. There should be a short summary for the board in plain language. Then comes the step many owners skip: check later that the fixes were made, by asking the tester to confirm. A report in a drawer improves nothing.
If personal data is exposed by something found, read data breach notification in Ireland, since the duty to report can start when you become aware. For the wider legal duties see cyber security legal duties and NIS2. A good first step before any test is reviewing what is public about you, covered in what is OSINT.
The Strategic Management programme covers this topic as part of its security and emerging technology work.
Questions people ask
- Is it legal to test my own website without telling anyone?
- If you own and control every system involved, yes in principle. But if a host or software provider runs the servers, you may need their permission too, so get it in writing.
- Can I let a friend with IT skills test my systems informally?
- It is risky. Without a written scope, dates and a named contact, a well-meant test can break a system or expose data, leaving you responsible for the result.
- What should a penetration test report contain?
- Findings ranked by risk, each with a fix, an owner and a date, plus a short plain-language summary for the board and a plan to check the fixes were made.
- Do I have to report personal data a tester sees?
- A tester seeing data under a signed agreement is not automatically a breach, but the contract should limit what is accessed, how it is kept and when it is deleted.