1. Short title This Act may be cited as the Dignity for Detained Immigrants Act of 2017 . 2. Standards for DHS detention facilities Not later than one year after the date of the enactment of this Act, the Secretary of Homeland Security shall, by rulemaking, establish detention standards for each facility at which aliens in the custody of the Department of Homeland Security are detained. Such standards shall provide, at a minimum, the level of protections for detainees described in the American Bar Association’s Civil Immigration Detention Standards (adopted in August, 2012, and as amended in August, 2014). On a biennial basis, the Secretary shall review and update such standards, as appropriate. 3. Oversight and transparency for DHS detention facilities (a) Periodic inspections (1) In general On a periodic basis, and not less than annually, the Inspector General of the Department of Homeland Security shall conduct an unannounced inspection of each facility at which aliens in the custody of the Department of Homeland Security are detained in order to ensure that each such facility is in compliance with the standards under section 2. Not later than 60 days after conducting an inspection under this subsection, the Inspector General shall make a report of such inspection publicly available on the website of the Department of Homeland Security, and submit such report to the Secretary of Homeland Security. (2) Failure to comply with standards (A) Initial failure In the case that the Inspector General determines that a facility has failed to comply with the standards under section 2 for the first time during any 2-year period, and that such noncompliance constitutes a deficiency that threatens the health, safety, or the due process rights of detainees, the Inspector General shall notify the Secretary of Homeland Security of such finding, and the Secretary shall— (i) in the case of a facility that is not owned by the Department of Homeland Security, impose a fine of not less than 10 percent of the value of the contract