Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in the Registration Statements on Form S-3 (No. 333-264198) and Form S-8 (No. 333-151105, No. 333-166989, No. 333-218035 and No. 333-279563) of COPT Defense Properties of our report dated February 21, 2025 relating to the financial statements, financial statement schedule and the effectiveness of internal control over financial reporting, which appears in this Form 10-K.

/s/ PricewaterhouseCoopers LLP

Baltimore, Maryland
February 21, 2025