Regrettably, these agencies have always been horrible. The memory you have is based on the fact that the government, via the media, has always controlled the message/imaging. The upright and lilly white law-abiding and a-political FBI, for example, is a complete myth from day one.
If not for the internet, none of what we know would be known and everyone would think that everything is just fine.
There is a serious top-down adjustment coming.
You’re right, of course. We all (well, some of us!) remember TV shows and movies with guys like Robert Stack and Jimmy Stewart playing G-man good-guys. I do believe, though, that the real people in these jobs back in the early post-war years were more dedicated than those currently “serving.”