The General Directorate for Internal Security (French: Direction générale de la sécurité intérieure, DGSI) is a French security agency. It is charged with counter-espionage, counter-terrorism, countering cybercrime and surveillance of potentially threatening groups, organisations, and social phenomena.