The OP also asked about portrayal of security services in other countries.
For a long time the British secret services have been widely portrayed as if not evil certainly shady and disreputable. Partly this is due to the large number of moles and spies (Burgess, Philby, Maclean, Blunt, etc) unmasked around the 1950s. And most fiction about the intelligence services - John le Carre, Len Deighton and the films and TV of the their work - portrays it as far from glamorous work, but rather as the domain of a bunch of (generally upper-class) people busy betraying each other (see e.g. Alan Bennett’s plays about Burgess and Blunt.)
This perception worsened in the 1980s as the security forces became more prominent. Ex-spy Peter Wright claimed in his book Spycatcher that the intelligence services were riddled with both incompetence and traitors, and alleged that they were involved in trying to destabilise Harold Wilson’s government in the late 1970s.
They were also involved (mainly army intelligence and MI5, as well as military special forces) in the fight against the IRA, running informants, gathering intelligence, and possibly involved in a program of deliberate assassinations of terrorists and people they saw as terrorist sympathisers (e.g. lawyer Pat Finucane). This has been documented in films like Ken Loach’s Hidden Agenda (1990).
MI5 were also active in the 1980s in gathering intelligence on industrial disputes (notably the miner’s strike of 1984-85) and on the Campaign for Nuclear Disarmament, and they have been blamed with varying degrees of credibility for burglaries and murder of peace activists, for planting false rumors about trades unionists (e.g. linking NUM head Arthur Scargill to the Libyan government), and there are claims that a senior official in the National Union of Mineworkers was an MI5 agent. This inevitably didn’t endear MI5 to those on the left.
1980s films and TV series like Defence of the Realm and paranoid nuclear thriller Edge of Darkness reinforced the impression of untrustworthiness and overzealousness, as more comically did Alan Plater’s Biederbecke Tapes.
More recently David Shayler has followed Wright in complaining about inefficiencies in the service. There have also been complaints over the very expensive new headquarters buildings of MI5 and MI6. And it has emerged that in the 1970s MI5 kept vast files on many people simply because of their left-of-centre politics, including members of Tony Blair’s government.
Recently, TV show Spooks has tried to portray MI5 as a happening modern law enforcement agency. Apparently it has caused a dramatic rise in job applications.
As for the rest of the world, the French secret service is probably still best known for blowing up the Greenpeace ship Rainbow Warrior in 1985, killing a crewperson. Although those with long memories may remember French paratroopers using torture and other incredibly brutal anti-insurgency techniques in Algeria.