Modification of the Discrete Sources Method based on employing of “fictitious” particle is suggested and performed. This approach allows one to perform an effective numerical analysis of the scattering properties of nanodimensional substrate defects, such as shallow pits and shallow bumps. Numerical results that demonstrate the capabilities of the implemented computer module are presented.