1. Short title This Act may be cited as the Keep Our Communities Safe Act of 2017 . 2. Sense of Congress It is the sense of Congress that— (1) Constitutional rights should be upheld and protected; (2) Congress intends to uphold the Constitutional principle of due process; and (3) due process of the law is a right afforded to everyone in the United States. 3. Detention of dangerous aliens during removal proceedings Section 236 of the Immigration and Nationality Act ( 8 U.S.C. 1226 ) is amended— (1) by striking Attorney General each place such term appears (except in the second place it appears in subsection (a)) and inserting Secretary of Homeland Security ; (2) in subsection (a)— (A) in the matter preceding paragraph (1), by inserting the Secretary of Homeland Security or before the Attorney General— ; and (B) in paragraph (2)(B), by striking conditional parole; and inserting recognizance; ; (3) in subsection (b)— (A) in the subsection heading, by striking parole and inserting recognizance ; and (B) by striking parole and inserting recognizance ; (4) in subsection (c)(1), by striking the undesignated matter following subparagraph (D) and inserting the following: any time after the alien is released, without regard to whether an alien is released related to any activity, offense, or conviction described in this paragraph; to whether the alien is released on parole, supervised release, or probation; or to whether the alien may be arrested or imprisoned again for the same offense. If the activity described in this paragraph does not result in the alien being taken into custody by any person other than the Secretary, then when the alien is brought to the attention of the Secretary or when the Secretary determines it is practical to take such alien into custody, the Secretary shall take such alien into custody. ; (5) in subsection (e), by striking Attorney General’s and inserting Secretary of Homeland Security’s