Is it illegal for a security company to pay social security application 4050 instead of social security?

Not illegal. Social insurance is paid by employers to employees. Individuals without work units can pay social security as flexible employees, and 4050 means paying subsidies for flexible employees. It is not illegal to apply. Social insurance is a social and economic system that provides income or compensation for those who lose their ability to work, are temporarily unemployed or suffer losses due to health reasons.