The Security Offences (Special Measures) Act 2012 (Act 747) was enacted to specifically deal with terrorism.
However, it is interesting to note that the now-repealed Internal Security Act 1960 (Act 82) provides a clear definition of a terrorist.