Aftermarket alarm? or factory? Either way, a malfunctioning alarm that is still hooked up could very well be the cause of your depleted battery.
Replacing the battery, and not knowing what was causing it to be drawn down will only kill the new battery. I’d be eyeballing that alarm system VERY closely.