If a mortgagee approved under the  chapter, a lender holding a contract of insurance under subchapter I, or a principal, officer, or employee of such mortgagee or lender, or other person or entity participating in either an insured mortgage or subchapter I loan transaction under this chapter or providing assistance to the borrower in connection with any such loan, including sellers of the real estate involved, borrowers, closing agents, title companies, real estate agents, mortgage brokers, appraisers, loan correspondents and dealers, knowingly and materially violates any applicable provision of subsection (b), the Secretary may impose a civil money penalty on the mortgagee or lender, or such other person or entity, in accordance with this section. The penalty under this paragraph shall be in addition to any other available civil remedy or any available criminal penalty, and may be imposed whether or not the Secretary imposes other administrative sanctions. The penalty shall be in addition to any other available civil remedy or any available criminal penalty, and may be imposed whether or not the Secretary imposes other administrative sanctions.
The amount of the penalty, as determined by the Secretary, may not exceed $5,000 for each violation, except that the maximum penalty for all violations by any particular mortgagee or lender or such other person or entity during any 1-year period shall not exceed $1,000,000. Each violation of a  the provisions of subsection (b)(1) shall constitute a separate violation with respect to each mortgage or loan application. In the case of a continuing violation, as determined by the Secretary, each day shall constitute a separate violation.
In the case of the mortgagee’s failure to engage in loss mitigation activities, as provided in subsection (b)(1)(I), the penalty shall be in the amount of three times the amount of any insurance benefits claimed by the mortgagee with respect to any mortgage for which the mortgagee failed to engage in such loss mitigation actions.
The Secretary may impose a civil money penalty, as adjusted from time to time, under subsection (a) for any use of “Federal Housing Administration”, “Department of Housing and Urban Development”, “Government National Mortgage Association”, “Ginnie Mae”, the acronyms “HUD”, “FHA”, or “GNMA”, or any official seal or logo of the Department of Housing and Urban Development, by any person, party, company, firm, partnership, or business, including sellers of real estate, closing agents, title companies, real estate agents, mortgage brokers, appraisers, loan correspondents, and dealers, except as authorized by the Secretary.
If no hearing is requested within 15 days of receipt of the notice of opportunity for hearing, the imposition of the penalty shall constitute a final and unappealable determination. If the Secretary reviews the determination or order, the Secretary may affirm, modify, or reverse that determination or order. If the Secretary does not review the determination or order within 90 days of the issuance of the determination or order, the determination or order shall be final.
In determining the amount of a penalty under subsection (a), consideration shall be given to such factors as the gravity of the offense, any history of prior offenses (including those before December 15, 1989), ability to pay the penalty, injury to the public, benefits received, deterrence of future violations, and such other factors as the Secretary may determine in regulations to be appropriate.
The Secretary’s determination or order imposing a penalty under subsection (a) shall not be subject to review, except as provided in subsection (d).
After exhausting all administrative remedies established by the Secretary under subsection (c)(1), a mortgagee or lender or such other person or entity against whom the Secretary has imposed a civil money penalty under subsection (a) may obtain a review of the penalty and such ancillary issues (such as any administrative sanctions under 24 C.F.R. parts 24 and 25) as may be addressed in the notice of determination to impose a penalty under subsection (c)(1)(A) in the appropriate court of appeals of the United States, by filing in such court, within 20 days after the entry of such order or determination, a written petition praying that the Secretary’s determination or order be modified or be set aside in whole or in part.
The court shall not consider any objection that was not raised in the hearing conducted pursuant to subsection (c)(1) unless a demonstration is made of extraordinary circumstances causing the failure to raise the objection. If any party demonstrates to the satisfaction of the court that additional evidence not presented at the hearing is material and that there were reasonable grounds for the failure to present such evidence at the hearing, the court shall remand the matter to the Secretary for consideration of the additional evidence.
Notwithstanding any other provision of law, in any such review, the court shall have the power to order payment of the penalty imposed by the Secretary.
If any mortgagee or lender or such other person or entity fails to comply with the Secretary’s determination or order imposing a civil money penalty under subsection (a), after the determination or order is no longer subject to review as provided by subsections (c)(1) and (d), the Secretary may request the Attorney General of the United States to bring an action in an appropriate United States district court to obtain a monetary judgment against the mortgagee or lender or such other person or entity and such other relief as may be available. The monetary judgment may, in the court’s discretion, include the attorneys fees and other expenses incurred by the United States in connection with the action. In an action under this subsection, the validity and appropriateness of the Secretary’s determination or order imposing the penalty shall not be subject to review.
The Secretary may compromise, modify, or remit any civil money penalty which may be, or has been, imposed under this section.
For purposes of this section, a person acts knowingly when a person has actual knowledge of acts or should have known of the acts.
Notwithstanding any other provision of law, all civil money penalties collected under this section shall be deposited in the appropriate insurance fund or funds established under this chapter, as determined by the Secretary.