; or (ii) for a background check that relates to— (I) employment with a law enforcement agency; or (II) any position that a Federal agency designates as a— (aa) national security position; or (bb) high-risk, public trust position. (B) Disclosure An officer or employee of a law enforcement agency or a court may disclose information contained in a sealed record only in order to carry out the purposes described in subparagraph (A). (e) Penalty for unauthorized disclosure (1) In general Whoever knowingly accesses or discloses information contained in a sealed record in a manner that is prohibited under this section, shall be fined under this title, imprisoned for not more than 1 year, or both. (2) Rule of construction Nothing in this subsection prevents a covered individual or an individual who was the victim of an offense from accessing or disclosing information contained in a sealed record. (f) Rulemaking The Attorney General shall, by rule, establish a process to ensure that any record in the possession of a Federal agency required to be sealed under this section, is automatically sealed in accordance with this section. (g) Applicability This section shall apply to an arrest or conviction that occurred or was entered before, on, or after the date of enactment of this section. Not later than 2 years after the date of the enactment of this section, the Attorney General shall ensure that any record related to an arrest or conviction that occurred or was entered prior to the automatic sealing of such a record, which record is required to be sealed under this section, is so sealed. 3561. Sealing of certain records upon petition (a) Definitions In this section— (1) the term covered nonviolent offense means a Federal criminal offense that is not— (A) a crime of violence (as defined in subsections (a) and (c) of section 3156); or (B) a sex offense (as that term is defined in section 111 of the Sex Offender Registration and Notification Act ( 42 U.S.C. 16911 ))