The definitely can.
TSA works with lock companies to develop locks they can remove without damaging the luggage .
Which also states that they may choose to open your bags.
I am pretty sure that other agencies providing security at airports have similar capabilities.
travel.stackexchange.com/users/1372/Karlson
Assuming I lock my luggage, what can they do if they suspect the baggage?
Are they allowed to break the luggage without my permission?
Similar question: Where does a 600 pound Gorilla sit?
If by "security officials" you mean Customs Officials processing passengers in or out of a country then the general rule is that they can do essentially anything they wish to with your bag and in some cases they may do more than they are allowed to.
Actual regulations re locked bags will vary by country but you can be more than certain that if your bag is locked and outgoing customs officials suspect it contains dangerous or unauthorised contents then it will not be allowed to progress unexamined.
A lock may be removed (always an easy task), the bag may be rejected and returned to the check in area or put in storage or confiscated, and it may be destroyed with malice aforethought.
All major airports have means of dealing with suspected explosive devices.
Detonation of bags left in public spaces occurs regularly if not especially frequently, and a checked in bag may be similarly destroyed if the risk is deemed to justify it.
What can they do?
Really? ...
I took the photo below in an airport "somewhere in China".
Almost everyone walks past this without being aware of what it is.
I call it a "Police Mortar" :-).
The writing just says "Police".
It has a two concentric cylinders, no doubt of high grade steel with some sort of buffer between.
Inner cylinder is generously sized to accommodate YOUR bag.
They assume that you will be providing the "charge" but with one of these they can add their own starter to see what happens when there is no roof overhead to make a mess of.
Spring mountings accommodate recoil, hopefully.
Throw it in, hitch it up, tow it away.
Somebody wants to talk to you about your missing luggage.
Just follow the column of smoke to the far side of the carpark.
Along the way ...
As I transited Australia heading for Asia I was accosted by two pleasant people.
They invited me to come to a small side room and have my carryon luggage and my general person sniffed for explosives using a magic machine supplied for that purpose.
They made it very clear that compliance was entirely voluntary and that I was under no obligation whatsoever to comply.
I asked what would happen if I declined.
They said "Then, Sir, your journey ends here.
" I complied.
The Chinese during the Olympics when I was outbound from Qingdao (Olympic sailing venue) took pssengers about 30 at a time into a locked room, went over everyone with wipes that presumably pick up residue, then placed the wipes in an electronic analyser.
Getting the all clear they released the roomful and brought in the next batch.
I've wondered what would happen to the journey plans of the 29/30 in the room if 1/30 caused a positive test.
You can expect that your checked baggage will be being given at least as careful a scruitiny as in these cases.
travel.stackexchange.com/users/3301/Russell McMahon
All countries will have regulations that allow security officials to open and inspect your bags.
The odds of them doing this due to a desktop computer being in the bag is very low, but it's always possible.
In the USA, locking your bag with a non-TSA approved lock (ie, one which they have the ability to open) will significantly increase the chances of your lock being removed and the bag inspected.
travel.stackexchange.com/users/984/Doc
Back 10 years ago I flew Melbourne -> LA -> Virginia and checked some expensive camera equipment in a Pelican case locked with Pelican locks.
On this particular trip I was so tired when I arrived in Virginia that I didn't notice that the locks were missing from the Pelican case and shoved it in the cupboard when I got home.
(I was also unfamiliar with the then new TSA policies)
A month later I pull it out , see the locks are missing from the outside and open it up to find the TSA leaflet explaining how they had cut my locks off to do an inspection .. and had thoughtfully left the remains of the locks in the case.
It really annoyed me that the TSA had broken the security of my case and had not re-secured it with something (zip ties, metal wire, anything).
This inspection happened sometime after I had passed through Immigration/Customs at LAX and then re-checked my bags on the domestic flight to VA at the drop-off point at the exit of Immigration/Customs.
I believe that as a result of the TSA action I had a camera stolen from that case.
Fortunately the thieves were dumb - in a case filled with $2500 of 35mm film camera equipment (including my all time favourite lens), they stole a $100 digital camera.
In my case I had discounted rule #1 for luggage and flying:
Never check anything you want to ever see again.
Never put anything in hand luggage that you can't just drop and leave.
Always keep on your person things that are required for physically traveling.
travel.stackexchange.com/users/6188/Peter M
I don't have any evidence for this
but I'm pretty sure on my last flight to the US in 2012
I saw some note that if the TSA suspects something in your checked luggage they have the right to open it.
If that means that they'll have to destroy any kind of lock then that's what they'll do.
This matches a warning in a travelguide I read a few years ago which also states that on flight to or from the US you should only lock your suitcase with a TSA approved (and therefore TSA-unlockable) lock.
travel.stackexchange.com/users/4742/perdian
Chris S answer in this question  recommends against packing items such as desktop computer because they can look suspicious to the security officials.  Assuming I lock my luggage, what can they do if they suspect the baggage? Are they allowed to break the luggage without my permission?
What can security officials do when they suspect my checked baggage?
travel.stackexchange.com
<usa><luggage><airport-security><electronic-items><malaysia>
travel.stackexchange.com/questions/16283
travel.stackexchange.com/users/6171/MohdSaif
All countries will have regulations that allow security officials to open and inspect your bags. Using a non-TSA-approved lock will make it more likely for the bag to be opened, rejected and returned to the check in area, put in storage or confiscated, or even destroyed. Any suspicious bags may be opened by security officials even if that means they have to break the lock. Regulations allowing this apply in all countries. Moreover, if you bag is left in a public space or security officials suspect it contains an explosive device, it may be detonated.
Security officials in all countries have the right to open suspicious luggage even if that means breaking locks. In the USA if you do not use a TSA approved lock, you bag is more likely to be opened. All major airports have ways of dealing with suspected explosive devices. Bags left in public spaces and suspicious checked bags may be destroyed.