Dominique Strauss-Kahn is getting a taste of the Bernard Madoff treatment as he adjusts his lifestyle from champagne socialism to battling sex crime charges.

The fallen IMF leader had to agree to become a cyber-prisoner of the same security-intelligence company which guarded notorious financier Madoff to convince a New York judge to give him a chance to plot a defense on bail.

The security firm Stroz Friedberg used one of its apartments at the Empire Building on Broadway as a temporary bolt-hole for Strauss-Kahn, when residents blocked him from moving to one his wife Anne Sinclair had found.