To accurately characterize shielded special nuclear materials (SNM) using passive gamma-ray spectroscopy measurement techniques, the effective atomic number and the thickness of shielding materials must be measured. Intervening materials between the source and detector may affect the estimated source isotopics (uranium enrichment and plutonium grade) for techniques which rely on raw count rates or photopeak ratios of gamma-ray lines separated in energy. Furthermore, knowledge of the surrounding materials can provide insight regarding the configuration of a device containing SNM. The described method was developed using spectra recorded using high energy resolution CdZnTe detectors, but can be expanded to any gamma-ray spectrometers with energy resolution of better than 1% FWHM at 662 keV. The effective atomic number, Z, and mass thickness of the intervening shielding material are identified by comparing the relative attenuation of different gamma-ray lines and estimating the proportion of Compton scattering interactions to photoelectric absorptions within the shield. While characteristic \text K_\alpha x-rays can be used to identify shielding materials made of high Z elements, this method can be applied to all shielding materials. This algorithm has adequately estimated the effective atomic number for shields made of iron, aluminum, and polyethylene surrounding uranium samples using experimental data. The mass thicknesses of shielding materials have been estimated with a standard error of less than 1.3 g/cm2 for iron shields up to 2.5 cm thick. The effective atomic number was accurately estimated to 26 ± 5 for all iron thicknesses. [ABSTRACT FROM PUBLISHER]