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.
"The Corrupt Society - From Ancient Greece To Present-Day America". Book by Pierre Stephen Robert Payne (Ibn Khaldun and Machiavelli, p. 139), 1975.