Historically the first philosopher to enquire deeply into the nature of corruption in society was Ibn Khaldun (1322-1406), whose wandering life was largely spent in the northern littoral of Africa at a time when kingdoms and sultanates were crumbling.
Ibn Khaldun and Machiavelli, p. 139 - The Corrupt Society - From Ancient Greece To Present-Day America (1975)