Two of Silicon Valley Bank’s top chiefs dumped millions of dollars worth of stock just two weeks before the firm collapsed Friday, records show.

CEO Greg Becker offloaded over $3.5 million worth of stocks — which amounted to nearly 12,500 shares — in a pre-planned, automated sell-off on Feb. 27, according to a US Securities and Exchange Commission filing.

That same day, the bank’s third-in-command CFO Daniel Beck sold $575,180 in stocks, Newsweek reported.

CEO Greg Becker sold over $3.5 million in stocks last week.
AFP via Getty Images

CFO Daniel Beck
CFO Daniel Beck offloaded his stocks the same day as Becker.
Silicon Valley Bank

Silicon Valley Bank, the once leading tech lender, was shut down by federal authorities just 11 days later.

Becker and Beck sold off their massive stakes in a legal corporate trading plan established by the SEC to thwart insider trading, so it is not clear whether the CEO and CFO knew the company would collapse in just two weeks.

SVB did not immediately respond to The Post’s request for comment.

The firm was abruptly shut down Friday by the California Department of Financial Protection and Innovation due to liquidity fears.

SVB disclosed it had taken a $1.8 billion hit from a $21 billion fire sale of its bond holdings.

It faced a cash crunch due to surging interest rates and a recent meltdown in the tech sector led many customers to pare their deposits.

Shares of SVB Financial, the bank’s parent, had plunged by a whopping 60% on Thursday. The stock was down by another 60% in premarket trading Friday until being halted.

Silicon Valley Bank headquarters in Santa Clara, California
Silicon Valley Bank abruptly shut down Friday due to liquidity fears.
Bloomberg via Getty Images

The sudden collapse has investors worried about a recession event similar to the 2008 financial crisis, though it’s not yet clear what the full impact will be.

Police were called to a Manhattan branch Friday as depositors swarmed the building in a bid to withdraw their money.