If, under the terms of the agreement, the money received as a security deposit is subject to offset against payment for services for the provision of residential premises for use, exempt from VAT, then such a security deposit is not included in the VAT base.
Source: glavkniga.ru