There's a steel bracket in the bottom of the battery, which can be pulled out and secured easily with a bicycle lock.

You can also get a special battery lock that is firmly attached to the battery holder. When the lock is closed, the battery cannot be removed from the holder.